@aws-sdk/client-kms 3.141.0 → 3.150.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 +250 -412
- package/dist-es/protocols/Aws_json1_1.js +401 -413
- package/package.json +11 -6
|
@@ -525,7 +525,6 @@ const deserializeAws_json1_1CancelKeyDeletionCommandError = async (output, conte
|
|
|
525
525
|
...output,
|
|
526
526
|
body: await parseBody(output.body, context),
|
|
527
527
|
};
|
|
528
|
-
let response;
|
|
529
528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
529
|
switch (errorCode) {
|
|
531
530
|
case "DependencyTimeoutException":
|
|
@@ -545,14 +544,12 @@ const deserializeAws_json1_1CancelKeyDeletionCommandError = async (output, conte
|
|
|
545
544
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
546
545
|
default:
|
|
547
546
|
const parsedBody = parsedOutput.body;
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
$metadata,
|
|
547
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
548
|
+
output,
|
|
549
|
+
parsedBody,
|
|
550
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
551
|
+
errorCode,
|
|
554
552
|
});
|
|
555
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
556
553
|
}
|
|
557
554
|
};
|
|
558
555
|
const deserializeAws_json1_1ConnectCustomKeyStoreCommand = async (output, context) => {
|
|
@@ -574,7 +571,6 @@ const deserializeAws_json1_1ConnectCustomKeyStoreCommandError = async (output, c
|
|
|
574
571
|
...output,
|
|
575
572
|
body: await parseBody(output.body, context),
|
|
576
573
|
};
|
|
577
|
-
let response;
|
|
578
574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
575
|
switch (errorCode) {
|
|
580
576
|
case "CloudHsmClusterInvalidConfigurationException":
|
|
@@ -594,14 +590,12 @@ const deserializeAws_json1_1ConnectCustomKeyStoreCommandError = async (output, c
|
|
|
594
590
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
595
591
|
default:
|
|
596
592
|
const parsedBody = parsedOutput.body;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
$metadata,
|
|
593
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
594
|
+
output,
|
|
595
|
+
parsedBody,
|
|
596
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
597
|
+
errorCode,
|
|
603
598
|
});
|
|
604
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
605
599
|
}
|
|
606
600
|
};
|
|
607
601
|
const deserializeAws_json1_1CreateAliasCommand = async (output, context) => {
|
|
@@ -620,7 +614,6 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
620
614
|
...output,
|
|
621
615
|
body: await parseBody(output.body, context),
|
|
622
616
|
};
|
|
623
|
-
let response;
|
|
624
617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
618
|
switch (errorCode) {
|
|
626
619
|
case "AlreadyExistsException":
|
|
@@ -646,14 +639,12 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
646
639
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
647
640
|
default:
|
|
648
641
|
const parsedBody = parsedOutput.body;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
$metadata,
|
|
642
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
643
|
+
output,
|
|
644
|
+
parsedBody,
|
|
645
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
646
|
+
errorCode,
|
|
655
647
|
});
|
|
656
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
657
648
|
}
|
|
658
649
|
};
|
|
659
650
|
const deserializeAws_json1_1CreateCustomKeyStoreCommand = async (output, context) => {
|
|
@@ -675,7 +666,6 @@ const deserializeAws_json1_1CreateCustomKeyStoreCommandError = async (output, co
|
|
|
675
666
|
...output,
|
|
676
667
|
body: await parseBody(output.body, context),
|
|
677
668
|
};
|
|
678
|
-
let response;
|
|
679
669
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
670
|
switch (errorCode) {
|
|
681
671
|
case "CloudHsmClusterInUseException":
|
|
@@ -701,14 +691,12 @@ const deserializeAws_json1_1CreateCustomKeyStoreCommandError = async (output, co
|
|
|
701
691
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
702
692
|
default:
|
|
703
693
|
const parsedBody = parsedOutput.body;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
$metadata,
|
|
694
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
695
|
+
output,
|
|
696
|
+
parsedBody,
|
|
697
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
698
|
+
errorCode,
|
|
710
699
|
});
|
|
711
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
712
700
|
}
|
|
713
701
|
};
|
|
714
702
|
const deserializeAws_json1_1CreateGrantCommand = async (output, context) => {
|
|
@@ -730,7 +718,6 @@ const deserializeAws_json1_1CreateGrantCommandError = async (output, context) =>
|
|
|
730
718
|
...output,
|
|
731
719
|
body: await parseBody(output.body, context),
|
|
732
720
|
};
|
|
733
|
-
let response;
|
|
734
721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
722
|
switch (errorCode) {
|
|
736
723
|
case "DependencyTimeoutException":
|
|
@@ -759,14 +746,12 @@ const deserializeAws_json1_1CreateGrantCommandError = async (output, context) =>
|
|
|
759
746
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
760
747
|
default:
|
|
761
748
|
const parsedBody = parsedOutput.body;
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
$metadata,
|
|
749
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
750
|
+
output,
|
|
751
|
+
parsedBody,
|
|
752
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
753
|
+
errorCode,
|
|
768
754
|
});
|
|
769
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
770
755
|
}
|
|
771
756
|
};
|
|
772
757
|
const deserializeAws_json1_1CreateKeyCommand = async (output, context) => {
|
|
@@ -788,7 +773,6 @@ const deserializeAws_json1_1CreateKeyCommandError = async (output, context) => {
|
|
|
788
773
|
...output,
|
|
789
774
|
body: await parseBody(output.body, context),
|
|
790
775
|
};
|
|
791
|
-
let response;
|
|
792
776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
777
|
switch (errorCode) {
|
|
794
778
|
case "CloudHsmClusterInvalidConfigurationException":
|
|
@@ -823,14 +807,12 @@ const deserializeAws_json1_1CreateKeyCommandError = async (output, context) => {
|
|
|
823
807
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
824
808
|
default:
|
|
825
809
|
const parsedBody = parsedOutput.body;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
$metadata,
|
|
810
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
811
|
+
output,
|
|
812
|
+
parsedBody,
|
|
813
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
814
|
+
errorCode,
|
|
832
815
|
});
|
|
833
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
834
816
|
}
|
|
835
817
|
};
|
|
836
818
|
const deserializeAws_json1_1DecryptCommand = async (output, context) => {
|
|
@@ -852,7 +834,6 @@ const deserializeAws_json1_1DecryptCommandError = async (output, context) => {
|
|
|
852
834
|
...output,
|
|
853
835
|
body: await parseBody(output.body, context),
|
|
854
836
|
};
|
|
855
|
-
let response;
|
|
856
837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
857
838
|
switch (errorCode) {
|
|
858
839
|
case "DependencyTimeoutException":
|
|
@@ -887,14 +868,12 @@ const deserializeAws_json1_1DecryptCommandError = async (output, context) => {
|
|
|
887
868
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
888
869
|
default:
|
|
889
870
|
const parsedBody = parsedOutput.body;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
$metadata,
|
|
871
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
872
|
+
output,
|
|
873
|
+
parsedBody,
|
|
874
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
875
|
+
errorCode,
|
|
896
876
|
});
|
|
897
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
898
877
|
}
|
|
899
878
|
};
|
|
900
879
|
const deserializeAws_json1_1DeleteAliasCommand = async (output, context) => {
|
|
@@ -913,7 +892,6 @@ const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) =>
|
|
|
913
892
|
...output,
|
|
914
893
|
body: await parseBody(output.body, context),
|
|
915
894
|
};
|
|
916
|
-
let response;
|
|
917
895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
896
|
switch (errorCode) {
|
|
919
897
|
case "DependencyTimeoutException":
|
|
@@ -930,14 +908,12 @@ const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) =>
|
|
|
930
908
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
931
909
|
default:
|
|
932
910
|
const parsedBody = parsedOutput.body;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
$metadata,
|
|
911
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
912
|
+
output,
|
|
913
|
+
parsedBody,
|
|
914
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
915
|
+
errorCode,
|
|
939
916
|
});
|
|
940
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
941
917
|
}
|
|
942
918
|
};
|
|
943
919
|
const deserializeAws_json1_1DeleteCustomKeyStoreCommand = async (output, context) => {
|
|
@@ -959,7 +935,6 @@ const deserializeAws_json1_1DeleteCustomKeyStoreCommandError = async (output, co
|
|
|
959
935
|
...output,
|
|
960
936
|
body: await parseBody(output.body, context),
|
|
961
937
|
};
|
|
962
|
-
let response;
|
|
963
938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
939
|
switch (errorCode) {
|
|
965
940
|
case "CustomKeyStoreHasCMKsException":
|
|
@@ -976,14 +951,12 @@ const deserializeAws_json1_1DeleteCustomKeyStoreCommandError = async (output, co
|
|
|
976
951
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
977
952
|
default:
|
|
978
953
|
const parsedBody = parsedOutput.body;
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
$metadata,
|
|
954
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
955
|
+
output,
|
|
956
|
+
parsedBody,
|
|
957
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
958
|
+
errorCode,
|
|
985
959
|
});
|
|
986
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
987
960
|
}
|
|
988
961
|
};
|
|
989
962
|
const deserializeAws_json1_1DeleteImportedKeyMaterialCommand = async (output, context) => {
|
|
@@ -1002,7 +975,6 @@ const deserializeAws_json1_1DeleteImportedKeyMaterialCommandError = async (outpu
|
|
|
1002
975
|
...output,
|
|
1003
976
|
body: await parseBody(output.body, context),
|
|
1004
977
|
};
|
|
1005
|
-
let response;
|
|
1006
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
979
|
switch (errorCode) {
|
|
1008
980
|
case "DependencyTimeoutException":
|
|
@@ -1025,14 +997,12 @@ const deserializeAws_json1_1DeleteImportedKeyMaterialCommandError = async (outpu
|
|
|
1025
997
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1026
998
|
default:
|
|
1027
999
|
const parsedBody = parsedOutput.body;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
$metadata,
|
|
1000
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1001
|
+
output,
|
|
1002
|
+
parsedBody,
|
|
1003
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1004
|
+
errorCode,
|
|
1034
1005
|
});
|
|
1035
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1036
1006
|
}
|
|
1037
1007
|
};
|
|
1038
1008
|
const deserializeAws_json1_1DescribeCustomKeyStoresCommand = async (output, context) => {
|
|
@@ -1054,7 +1024,6 @@ const deserializeAws_json1_1DescribeCustomKeyStoresCommandError = async (output,
|
|
|
1054
1024
|
...output,
|
|
1055
1025
|
body: await parseBody(output.body, context),
|
|
1056
1026
|
};
|
|
1057
|
-
let response;
|
|
1058
1027
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1028
|
switch (errorCode) {
|
|
1060
1029
|
case "CustomKeyStoreNotFoundException":
|
|
@@ -1068,14 +1037,12 @@ const deserializeAws_json1_1DescribeCustomKeyStoresCommandError = async (output,
|
|
|
1068
1037
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1069
1038
|
default:
|
|
1070
1039
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
$metadata,
|
|
1040
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1041
|
+
output,
|
|
1042
|
+
parsedBody,
|
|
1043
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1044
|
+
errorCode,
|
|
1077
1045
|
});
|
|
1078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1079
1046
|
}
|
|
1080
1047
|
};
|
|
1081
1048
|
const deserializeAws_json1_1DescribeKeyCommand = async (output, context) => {
|
|
@@ -1097,7 +1064,6 @@ const deserializeAws_json1_1DescribeKeyCommandError = async (output, context) =>
|
|
|
1097
1064
|
...output,
|
|
1098
1065
|
body: await parseBody(output.body, context),
|
|
1099
1066
|
};
|
|
1100
|
-
let response;
|
|
1101
1067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
1068
|
switch (errorCode) {
|
|
1103
1069
|
case "DependencyTimeoutException":
|
|
@@ -1114,14 +1080,12 @@ const deserializeAws_json1_1DescribeKeyCommandError = async (output, context) =>
|
|
|
1114
1080
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1115
1081
|
default:
|
|
1116
1082
|
const parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
$metadata,
|
|
1083
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1084
|
+
output,
|
|
1085
|
+
parsedBody,
|
|
1086
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1087
|
+
errorCode,
|
|
1123
1088
|
});
|
|
1124
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1125
1089
|
}
|
|
1126
1090
|
};
|
|
1127
1091
|
const deserializeAws_json1_1DisableKeyCommand = async (output, context) => {
|
|
@@ -1140,7 +1104,6 @@ const deserializeAws_json1_1DisableKeyCommandError = async (output, context) =>
|
|
|
1140
1104
|
...output,
|
|
1141
1105
|
body: await parseBody(output.body, context),
|
|
1142
1106
|
};
|
|
1143
|
-
let response;
|
|
1144
1107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
1108
|
switch (errorCode) {
|
|
1146
1109
|
case "DependencyTimeoutException":
|
|
@@ -1160,14 +1123,12 @@ const deserializeAws_json1_1DisableKeyCommandError = async (output, context) =>
|
|
|
1160
1123
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1161
1124
|
default:
|
|
1162
1125
|
const parsedBody = parsedOutput.body;
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
$metadata,
|
|
1126
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1127
|
+
output,
|
|
1128
|
+
parsedBody,
|
|
1129
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1130
|
+
errorCode,
|
|
1169
1131
|
});
|
|
1170
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1171
1132
|
}
|
|
1172
1133
|
};
|
|
1173
1134
|
const deserializeAws_json1_1DisableKeyRotationCommand = async (output, context) => {
|
|
@@ -1186,7 +1147,6 @@ const deserializeAws_json1_1DisableKeyRotationCommandError = async (output, cont
|
|
|
1186
1147
|
...output,
|
|
1187
1148
|
body: await parseBody(output.body, context),
|
|
1188
1149
|
};
|
|
1189
|
-
let response;
|
|
1190
1150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
1151
|
switch (errorCode) {
|
|
1192
1152
|
case "DependencyTimeoutException":
|
|
@@ -1212,14 +1172,12 @@ const deserializeAws_json1_1DisableKeyRotationCommandError = async (output, cont
|
|
|
1212
1172
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1213
1173
|
default:
|
|
1214
1174
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
$metadata,
|
|
1175
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1176
|
+
output,
|
|
1177
|
+
parsedBody,
|
|
1178
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1179
|
+
errorCode,
|
|
1221
1180
|
});
|
|
1222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1223
1181
|
}
|
|
1224
1182
|
};
|
|
1225
1183
|
const deserializeAws_json1_1DisconnectCustomKeyStoreCommand = async (output, context) => {
|
|
@@ -1241,7 +1199,6 @@ const deserializeAws_json1_1DisconnectCustomKeyStoreCommandError = async (output
|
|
|
1241
1199
|
...output,
|
|
1242
1200
|
body: await parseBody(output.body, context),
|
|
1243
1201
|
};
|
|
1244
|
-
let response;
|
|
1245
1202
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
1203
|
switch (errorCode) {
|
|
1247
1204
|
case "CustomKeyStoreInvalidStateException":
|
|
@@ -1255,14 +1212,12 @@ const deserializeAws_json1_1DisconnectCustomKeyStoreCommandError = async (output
|
|
|
1255
1212
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1256
1213
|
default:
|
|
1257
1214
|
const parsedBody = parsedOutput.body;
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
$metadata,
|
|
1215
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1216
|
+
output,
|
|
1217
|
+
parsedBody,
|
|
1218
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1219
|
+
errorCode,
|
|
1264
1220
|
});
|
|
1265
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1266
1221
|
}
|
|
1267
1222
|
};
|
|
1268
1223
|
const deserializeAws_json1_1EnableKeyCommand = async (output, context) => {
|
|
@@ -1281,7 +1236,6 @@ const deserializeAws_json1_1EnableKeyCommandError = async (output, context) => {
|
|
|
1281
1236
|
...output,
|
|
1282
1237
|
body: await parseBody(output.body, context),
|
|
1283
1238
|
};
|
|
1284
|
-
let response;
|
|
1285
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1240
|
switch (errorCode) {
|
|
1287
1241
|
case "DependencyTimeoutException":
|
|
@@ -1304,14 +1258,12 @@ const deserializeAws_json1_1EnableKeyCommandError = async (output, context) => {
|
|
|
1304
1258
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1305
1259
|
default:
|
|
1306
1260
|
const parsedBody = parsedOutput.body;
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
$metadata,
|
|
1261
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1262
|
+
output,
|
|
1263
|
+
parsedBody,
|
|
1264
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1265
|
+
errorCode,
|
|
1313
1266
|
});
|
|
1314
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1315
1267
|
}
|
|
1316
1268
|
};
|
|
1317
1269
|
const deserializeAws_json1_1EnableKeyRotationCommand = async (output, context) => {
|
|
@@ -1330,7 +1282,6 @@ const deserializeAws_json1_1EnableKeyRotationCommandError = async (output, conte
|
|
|
1330
1282
|
...output,
|
|
1331
1283
|
body: await parseBody(output.body, context),
|
|
1332
1284
|
};
|
|
1333
|
-
let response;
|
|
1334
1285
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
1286
|
switch (errorCode) {
|
|
1336
1287
|
case "DependencyTimeoutException":
|
|
@@ -1356,14 +1307,12 @@ const deserializeAws_json1_1EnableKeyRotationCommandError = async (output, conte
|
|
|
1356
1307
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1357
1308
|
default:
|
|
1358
1309
|
const parsedBody = parsedOutput.body;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
$metadata,
|
|
1310
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1311
|
+
output,
|
|
1312
|
+
parsedBody,
|
|
1313
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1314
|
+
errorCode,
|
|
1365
1315
|
});
|
|
1366
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1367
1316
|
}
|
|
1368
1317
|
};
|
|
1369
1318
|
const deserializeAws_json1_1EncryptCommand = async (output, context) => {
|
|
@@ -1385,7 +1334,6 @@ const deserializeAws_json1_1EncryptCommandError = async (output, context) => {
|
|
|
1385
1334
|
...output,
|
|
1386
1335
|
body: await parseBody(output.body, context),
|
|
1387
1336
|
};
|
|
1388
|
-
let response;
|
|
1389
1337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
1338
|
switch (errorCode) {
|
|
1391
1339
|
case "DependencyTimeoutException":
|
|
@@ -1414,14 +1362,12 @@ const deserializeAws_json1_1EncryptCommandError = async (output, context) => {
|
|
|
1414
1362
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1415
1363
|
default:
|
|
1416
1364
|
const parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
$metadata,
|
|
1365
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1366
|
+
output,
|
|
1367
|
+
parsedBody,
|
|
1368
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1369
|
+
errorCode,
|
|
1423
1370
|
});
|
|
1424
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1425
1371
|
}
|
|
1426
1372
|
};
|
|
1427
1373
|
const deserializeAws_json1_1GenerateDataKeyCommand = async (output, context) => {
|
|
@@ -1443,7 +1389,6 @@ const deserializeAws_json1_1GenerateDataKeyCommandError = async (output, context
|
|
|
1443
1389
|
...output,
|
|
1444
1390
|
body: await parseBody(output.body, context),
|
|
1445
1391
|
};
|
|
1446
|
-
let response;
|
|
1447
1392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
1393
|
switch (errorCode) {
|
|
1449
1394
|
case "DependencyTimeoutException":
|
|
@@ -1472,14 +1417,12 @@ const deserializeAws_json1_1GenerateDataKeyCommandError = async (output, context
|
|
|
1472
1417
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1473
1418
|
default:
|
|
1474
1419
|
const parsedBody = parsedOutput.body;
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
$metadata,
|
|
1420
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1421
|
+
output,
|
|
1422
|
+
parsedBody,
|
|
1423
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1424
|
+
errorCode,
|
|
1481
1425
|
});
|
|
1482
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1483
1426
|
}
|
|
1484
1427
|
};
|
|
1485
1428
|
const deserializeAws_json1_1GenerateDataKeyPairCommand = async (output, context) => {
|
|
@@ -1501,7 +1444,6 @@ const deserializeAws_json1_1GenerateDataKeyPairCommandError = async (output, con
|
|
|
1501
1444
|
...output,
|
|
1502
1445
|
body: await parseBody(output.body, context),
|
|
1503
1446
|
};
|
|
1504
|
-
let response;
|
|
1505
1447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1448
|
switch (errorCode) {
|
|
1507
1449
|
case "DependencyTimeoutException":
|
|
@@ -1533,14 +1475,12 @@ const deserializeAws_json1_1GenerateDataKeyPairCommandError = async (output, con
|
|
|
1533
1475
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1534
1476
|
default:
|
|
1535
1477
|
const parsedBody = parsedOutput.body;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
$metadata,
|
|
1478
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1479
|
+
output,
|
|
1480
|
+
parsedBody,
|
|
1481
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1482
|
+
errorCode,
|
|
1542
1483
|
});
|
|
1543
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1544
1484
|
}
|
|
1545
1485
|
};
|
|
1546
1486
|
const deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand = async (output, context) => {
|
|
@@ -1562,7 +1502,6 @@ const deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommandError = as
|
|
|
1562
1502
|
...output,
|
|
1563
1503
|
body: await parseBody(output.body, context),
|
|
1564
1504
|
};
|
|
1565
|
-
let response;
|
|
1566
1505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1506
|
switch (errorCode) {
|
|
1568
1507
|
case "DependencyTimeoutException":
|
|
@@ -1594,14 +1533,12 @@ const deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommandError = as
|
|
|
1594
1533
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1595
1534
|
default:
|
|
1596
1535
|
const parsedBody = parsedOutput.body;
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
$metadata,
|
|
1536
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1537
|
+
output,
|
|
1538
|
+
parsedBody,
|
|
1539
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1540
|
+
errorCode,
|
|
1603
1541
|
});
|
|
1604
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1605
1542
|
}
|
|
1606
1543
|
};
|
|
1607
1544
|
const deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand = async (output, context) => {
|
|
@@ -1623,7 +1560,6 @@ const deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommandError = async
|
|
|
1623
1560
|
...output,
|
|
1624
1561
|
body: await parseBody(output.body, context),
|
|
1625
1562
|
};
|
|
1626
|
-
let response;
|
|
1627
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
1564
|
switch (errorCode) {
|
|
1629
1565
|
case "DependencyTimeoutException":
|
|
@@ -1652,14 +1588,12 @@ const deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommandError = async
|
|
|
1652
1588
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1653
1589
|
default:
|
|
1654
1590
|
const parsedBody = parsedOutput.body;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
$metadata,
|
|
1591
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1592
|
+
output,
|
|
1593
|
+
parsedBody,
|
|
1594
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1595
|
+
errorCode,
|
|
1661
1596
|
});
|
|
1662
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1663
1597
|
}
|
|
1664
1598
|
};
|
|
1665
1599
|
const deserializeAws_json1_1GenerateMacCommand = async (output, context) => {
|
|
@@ -1681,7 +1615,6 @@ const deserializeAws_json1_1GenerateMacCommandError = async (output, context) =>
|
|
|
1681
1615
|
...output,
|
|
1682
1616
|
body: await parseBody(output.body, context),
|
|
1683
1617
|
};
|
|
1684
|
-
let response;
|
|
1685
1618
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1619
|
switch (errorCode) {
|
|
1687
1620
|
case "DisabledException":
|
|
@@ -1707,14 +1640,12 @@ const deserializeAws_json1_1GenerateMacCommandError = async (output, context) =>
|
|
|
1707
1640
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1708
1641
|
default:
|
|
1709
1642
|
const parsedBody = parsedOutput.body;
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
$metadata,
|
|
1643
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1644
|
+
output,
|
|
1645
|
+
parsedBody,
|
|
1646
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1647
|
+
errorCode,
|
|
1716
1648
|
});
|
|
1717
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1718
1649
|
}
|
|
1719
1650
|
};
|
|
1720
1651
|
const deserializeAws_json1_1GenerateRandomCommand = async (output, context) => {
|
|
@@ -1736,7 +1667,6 @@ const deserializeAws_json1_1GenerateRandomCommandError = async (output, context)
|
|
|
1736
1667
|
...output,
|
|
1737
1668
|
body: await parseBody(output.body, context),
|
|
1738
1669
|
};
|
|
1739
|
-
let response;
|
|
1740
1670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
1671
|
switch (errorCode) {
|
|
1742
1672
|
case "CustomKeyStoreInvalidStateException":
|
|
@@ -1753,14 +1683,12 @@ const deserializeAws_json1_1GenerateRandomCommandError = async (output, context)
|
|
|
1753
1683
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1754
1684
|
default:
|
|
1755
1685
|
const parsedBody = parsedOutput.body;
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
$metadata,
|
|
1686
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1687
|
+
output,
|
|
1688
|
+
parsedBody,
|
|
1689
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1690
|
+
errorCode,
|
|
1762
1691
|
});
|
|
1763
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1764
1692
|
}
|
|
1765
1693
|
};
|
|
1766
1694
|
const deserializeAws_json1_1GetKeyPolicyCommand = async (output, context) => {
|
|
@@ -1782,7 +1710,6 @@ const deserializeAws_json1_1GetKeyPolicyCommandError = async (output, context) =
|
|
|
1782
1710
|
...output,
|
|
1783
1711
|
body: await parseBody(output.body, context),
|
|
1784
1712
|
};
|
|
1785
|
-
let response;
|
|
1786
1713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
1714
|
switch (errorCode) {
|
|
1788
1715
|
case "DependencyTimeoutException":
|
|
@@ -1802,14 +1729,12 @@ const deserializeAws_json1_1GetKeyPolicyCommandError = async (output, context) =
|
|
|
1802
1729
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1803
1730
|
default:
|
|
1804
1731
|
const parsedBody = parsedOutput.body;
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
$metadata,
|
|
1732
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1733
|
+
output,
|
|
1734
|
+
parsedBody,
|
|
1735
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1736
|
+
errorCode,
|
|
1811
1737
|
});
|
|
1812
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1813
1738
|
}
|
|
1814
1739
|
};
|
|
1815
1740
|
const deserializeAws_json1_1GetKeyRotationStatusCommand = async (output, context) => {
|
|
@@ -1831,7 +1756,6 @@ const deserializeAws_json1_1GetKeyRotationStatusCommandError = async (output, co
|
|
|
1831
1756
|
...output,
|
|
1832
1757
|
body: await parseBody(output.body, context),
|
|
1833
1758
|
};
|
|
1834
|
-
let response;
|
|
1835
1759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
1760
|
switch (errorCode) {
|
|
1837
1761
|
case "DependencyTimeoutException":
|
|
@@ -1854,14 +1778,12 @@ const deserializeAws_json1_1GetKeyRotationStatusCommandError = async (output, co
|
|
|
1854
1778
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1855
1779
|
default:
|
|
1856
1780
|
const parsedBody = parsedOutput.body;
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
$metadata,
|
|
1781
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1782
|
+
output,
|
|
1783
|
+
parsedBody,
|
|
1784
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1785
|
+
errorCode,
|
|
1863
1786
|
});
|
|
1864
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1865
1787
|
}
|
|
1866
1788
|
};
|
|
1867
1789
|
const deserializeAws_json1_1GetParametersForImportCommand = async (output, context) => {
|
|
@@ -1883,7 +1805,6 @@ const deserializeAws_json1_1GetParametersForImportCommandError = async (output,
|
|
|
1883
1805
|
...output,
|
|
1884
1806
|
body: await parseBody(output.body, context),
|
|
1885
1807
|
};
|
|
1886
|
-
let response;
|
|
1887
1808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
1809
|
switch (errorCode) {
|
|
1889
1810
|
case "DependencyTimeoutException":
|
|
@@ -1906,14 +1827,12 @@ const deserializeAws_json1_1GetParametersForImportCommandError = async (output,
|
|
|
1906
1827
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1907
1828
|
default:
|
|
1908
1829
|
const parsedBody = parsedOutput.body;
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
$metadata,
|
|
1830
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1831
|
+
output,
|
|
1832
|
+
parsedBody,
|
|
1833
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1834
|
+
errorCode,
|
|
1915
1835
|
});
|
|
1916
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1917
1836
|
}
|
|
1918
1837
|
};
|
|
1919
1838
|
const deserializeAws_json1_1GetPublicKeyCommand = async (output, context) => {
|
|
@@ -1935,7 +1854,6 @@ const deserializeAws_json1_1GetPublicKeyCommandError = async (output, context) =
|
|
|
1935
1854
|
...output,
|
|
1936
1855
|
body: await parseBody(output.body, context),
|
|
1937
1856
|
};
|
|
1938
|
-
let response;
|
|
1939
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1858
|
switch (errorCode) {
|
|
1941
1859
|
case "DependencyTimeoutException":
|
|
@@ -1970,14 +1888,12 @@ const deserializeAws_json1_1GetPublicKeyCommandError = async (output, context) =
|
|
|
1970
1888
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1971
1889
|
default:
|
|
1972
1890
|
const parsedBody = parsedOutput.body;
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
$metadata,
|
|
1891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1892
|
+
output,
|
|
1893
|
+
parsedBody,
|
|
1894
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1895
|
+
errorCode,
|
|
1979
1896
|
});
|
|
1980
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1981
1897
|
}
|
|
1982
1898
|
};
|
|
1983
1899
|
const deserializeAws_json1_1ImportKeyMaterialCommand = async (output, context) => {
|
|
@@ -1999,7 +1915,6 @@ const deserializeAws_json1_1ImportKeyMaterialCommandError = async (output, conte
|
|
|
1999
1915
|
...output,
|
|
2000
1916
|
body: await parseBody(output.body, context),
|
|
2001
1917
|
};
|
|
2002
|
-
let response;
|
|
2003
1918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
1919
|
switch (errorCode) {
|
|
2005
1920
|
case "DependencyTimeoutException":
|
|
@@ -2034,14 +1949,12 @@ const deserializeAws_json1_1ImportKeyMaterialCommandError = async (output, conte
|
|
|
2034
1949
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2035
1950
|
default:
|
|
2036
1951
|
const parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
$metadata,
|
|
1952
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1953
|
+
output,
|
|
1954
|
+
parsedBody,
|
|
1955
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1956
|
+
errorCode,
|
|
2043
1957
|
});
|
|
2044
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2045
1958
|
}
|
|
2046
1959
|
};
|
|
2047
1960
|
const deserializeAws_json1_1ListAliasesCommand = async (output, context) => {
|
|
@@ -2063,7 +1976,6 @@ const deserializeAws_json1_1ListAliasesCommandError = async (output, context) =>
|
|
|
2063
1976
|
...output,
|
|
2064
1977
|
body: await parseBody(output.body, context),
|
|
2065
1978
|
};
|
|
2066
|
-
let response;
|
|
2067
1979
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
1980
|
switch (errorCode) {
|
|
2069
1981
|
case "DependencyTimeoutException":
|
|
@@ -2083,14 +1995,12 @@ const deserializeAws_json1_1ListAliasesCommandError = async (output, context) =>
|
|
|
2083
1995
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2084
1996
|
default:
|
|
2085
1997
|
const parsedBody = parsedOutput.body;
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
$metadata,
|
|
1998
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1999
|
+
output,
|
|
2000
|
+
parsedBody,
|
|
2001
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2002
|
+
errorCode,
|
|
2092
2003
|
});
|
|
2093
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2094
2004
|
}
|
|
2095
2005
|
};
|
|
2096
2006
|
const deserializeAws_json1_1ListGrantsCommand = async (output, context) => {
|
|
@@ -2112,7 +2022,6 @@ const deserializeAws_json1_1ListGrantsCommandError = async (output, context) =>
|
|
|
2112
2022
|
...output,
|
|
2113
2023
|
body: await parseBody(output.body, context),
|
|
2114
2024
|
};
|
|
2115
|
-
let response;
|
|
2116
2025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
2026
|
switch (errorCode) {
|
|
2118
2027
|
case "DependencyTimeoutException":
|
|
@@ -2138,14 +2047,12 @@ const deserializeAws_json1_1ListGrantsCommandError = async (output, context) =>
|
|
|
2138
2047
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2139
2048
|
default:
|
|
2140
2049
|
const parsedBody = parsedOutput.body;
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
$metadata,
|
|
2050
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2051
|
+
output,
|
|
2052
|
+
parsedBody,
|
|
2053
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2054
|
+
errorCode,
|
|
2147
2055
|
});
|
|
2148
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2149
2056
|
}
|
|
2150
2057
|
};
|
|
2151
2058
|
const deserializeAws_json1_1ListKeyPoliciesCommand = async (output, context) => {
|
|
@@ -2167,7 +2074,6 @@ const deserializeAws_json1_1ListKeyPoliciesCommandError = async (output, context
|
|
|
2167
2074
|
...output,
|
|
2168
2075
|
body: await parseBody(output.body, context),
|
|
2169
2076
|
};
|
|
2170
|
-
let response;
|
|
2171
2077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
2078
|
switch (errorCode) {
|
|
2173
2079
|
case "DependencyTimeoutException":
|
|
@@ -2187,14 +2093,12 @@ const deserializeAws_json1_1ListKeyPoliciesCommandError = async (output, context
|
|
|
2187
2093
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2188
2094
|
default:
|
|
2189
2095
|
const parsedBody = parsedOutput.body;
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
$metadata,
|
|
2096
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2097
|
+
output,
|
|
2098
|
+
parsedBody,
|
|
2099
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2100
|
+
errorCode,
|
|
2196
2101
|
});
|
|
2197
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2198
2102
|
}
|
|
2199
2103
|
};
|
|
2200
2104
|
const deserializeAws_json1_1ListKeysCommand = async (output, context) => {
|
|
@@ -2216,7 +2120,6 @@ const deserializeAws_json1_1ListKeysCommandError = async (output, context) => {
|
|
|
2216
2120
|
...output,
|
|
2217
2121
|
body: await parseBody(output.body, context),
|
|
2218
2122
|
};
|
|
2219
|
-
let response;
|
|
2220
2123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
2124
|
switch (errorCode) {
|
|
2222
2125
|
case "DependencyTimeoutException":
|
|
@@ -2230,14 +2133,12 @@ const deserializeAws_json1_1ListKeysCommandError = async (output, context) => {
|
|
|
2230
2133
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
2231
2134
|
default:
|
|
2232
2135
|
const parsedBody = parsedOutput.body;
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
$metadata,
|
|
2136
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2137
|
+
output,
|
|
2138
|
+
parsedBody,
|
|
2139
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2140
|
+
errorCode,
|
|
2239
2141
|
});
|
|
2240
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2241
2142
|
}
|
|
2242
2143
|
};
|
|
2243
2144
|
const deserializeAws_json1_1ListResourceTagsCommand = async (output, context) => {
|
|
@@ -2259,7 +2160,6 @@ const deserializeAws_json1_1ListResourceTagsCommandError = async (output, contex
|
|
|
2259
2160
|
...output,
|
|
2260
2161
|
body: await parseBody(output.body, context),
|
|
2261
2162
|
};
|
|
2262
|
-
let response;
|
|
2263
2163
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2264
2164
|
switch (errorCode) {
|
|
2265
2165
|
case "InvalidArnException":
|
|
@@ -2276,14 +2176,12 @@ const deserializeAws_json1_1ListResourceTagsCommandError = async (output, contex
|
|
|
2276
2176
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2277
2177
|
default:
|
|
2278
2178
|
const parsedBody = parsedOutput.body;
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
$metadata,
|
|
2179
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2180
|
+
output,
|
|
2181
|
+
parsedBody,
|
|
2182
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2183
|
+
errorCode,
|
|
2285
2184
|
});
|
|
2286
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2287
2185
|
}
|
|
2288
2186
|
};
|
|
2289
2187
|
const deserializeAws_json1_1ListRetirableGrantsCommand = async (output, context) => {
|
|
@@ -2305,7 +2203,6 @@ const deserializeAws_json1_1ListRetirableGrantsCommandError = async (output, con
|
|
|
2305
2203
|
...output,
|
|
2306
2204
|
body: await parseBody(output.body, context),
|
|
2307
2205
|
};
|
|
2308
|
-
let response;
|
|
2309
2206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2310
2207
|
switch (errorCode) {
|
|
2311
2208
|
case "DependencyTimeoutException":
|
|
@@ -2325,14 +2222,12 @@ const deserializeAws_json1_1ListRetirableGrantsCommandError = async (output, con
|
|
|
2325
2222
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2326
2223
|
default:
|
|
2327
2224
|
const parsedBody = parsedOutput.body;
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
$metadata,
|
|
2225
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2226
|
+
output,
|
|
2227
|
+
parsedBody,
|
|
2228
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2229
|
+
errorCode,
|
|
2334
2230
|
});
|
|
2335
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2336
2231
|
}
|
|
2337
2232
|
};
|
|
2338
2233
|
const deserializeAws_json1_1PutKeyPolicyCommand = async (output, context) => {
|
|
@@ -2351,7 +2246,6 @@ const deserializeAws_json1_1PutKeyPolicyCommandError = async (output, context) =
|
|
|
2351
2246
|
...output,
|
|
2352
2247
|
body: await parseBody(output.body, context),
|
|
2353
2248
|
};
|
|
2354
|
-
let response;
|
|
2355
2249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2250
|
switch (errorCode) {
|
|
2357
2251
|
case "DependencyTimeoutException":
|
|
@@ -2380,14 +2274,12 @@ const deserializeAws_json1_1PutKeyPolicyCommandError = async (output, context) =
|
|
|
2380
2274
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2381
2275
|
default:
|
|
2382
2276
|
const parsedBody = parsedOutput.body;
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
$metadata,
|
|
2277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2278
|
+
output,
|
|
2279
|
+
parsedBody,
|
|
2280
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2281
|
+
errorCode,
|
|
2389
2282
|
});
|
|
2390
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2391
2283
|
}
|
|
2392
2284
|
};
|
|
2393
2285
|
const deserializeAws_json1_1ReEncryptCommand = async (output, context) => {
|
|
@@ -2409,7 +2301,6 @@ const deserializeAws_json1_1ReEncryptCommandError = async (output, context) => {
|
|
|
2409
2301
|
...output,
|
|
2410
2302
|
body: await parseBody(output.body, context),
|
|
2411
2303
|
};
|
|
2412
|
-
let response;
|
|
2413
2304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
2305
|
switch (errorCode) {
|
|
2415
2306
|
case "DependencyTimeoutException":
|
|
@@ -2444,14 +2335,12 @@ const deserializeAws_json1_1ReEncryptCommandError = async (output, context) => {
|
|
|
2444
2335
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2445
2336
|
default:
|
|
2446
2337
|
const parsedBody = parsedOutput.body;
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
$metadata,
|
|
2338
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2339
|
+
output,
|
|
2340
|
+
parsedBody,
|
|
2341
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2342
|
+
errorCode,
|
|
2453
2343
|
});
|
|
2454
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2455
2344
|
}
|
|
2456
2345
|
};
|
|
2457
2346
|
const deserializeAws_json1_1ReplicateKeyCommand = async (output, context) => {
|
|
@@ -2473,7 +2362,6 @@ const deserializeAws_json1_1ReplicateKeyCommandError = async (output, context) =
|
|
|
2473
2362
|
...output,
|
|
2474
2363
|
body: await parseBody(output.body, context),
|
|
2475
2364
|
};
|
|
2476
|
-
let response;
|
|
2477
2365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
2366
|
switch (errorCode) {
|
|
2479
2367
|
case "AlreadyExistsException":
|
|
@@ -2508,14 +2396,12 @@ const deserializeAws_json1_1ReplicateKeyCommandError = async (output, context) =
|
|
|
2508
2396
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2509
2397
|
default:
|
|
2510
2398
|
const parsedBody = parsedOutput.body;
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
$metadata,
|
|
2399
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2400
|
+
output,
|
|
2401
|
+
parsedBody,
|
|
2402
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2403
|
+
errorCode,
|
|
2517
2404
|
});
|
|
2518
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2519
2405
|
}
|
|
2520
2406
|
};
|
|
2521
2407
|
const deserializeAws_json1_1RetireGrantCommand = async (output, context) => {
|
|
@@ -2534,7 +2420,6 @@ const deserializeAws_json1_1RetireGrantCommandError = async (output, context) =>
|
|
|
2534
2420
|
...output,
|
|
2535
2421
|
body: await parseBody(output.body, context),
|
|
2536
2422
|
};
|
|
2537
|
-
let response;
|
|
2538
2423
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
2424
|
switch (errorCode) {
|
|
2540
2425
|
case "DependencyTimeoutException":
|
|
@@ -2560,14 +2445,12 @@ const deserializeAws_json1_1RetireGrantCommandError = async (output, context) =>
|
|
|
2560
2445
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2561
2446
|
default:
|
|
2562
2447
|
const parsedBody = parsedOutput.body;
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
$metadata,
|
|
2448
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2449
|
+
output,
|
|
2450
|
+
parsedBody,
|
|
2451
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2452
|
+
errorCode,
|
|
2569
2453
|
});
|
|
2570
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2571
2454
|
}
|
|
2572
2455
|
};
|
|
2573
2456
|
const deserializeAws_json1_1RevokeGrantCommand = async (output, context) => {
|
|
@@ -2586,7 +2469,6 @@ const deserializeAws_json1_1RevokeGrantCommandError = async (output, context) =>
|
|
|
2586
2469
|
...output,
|
|
2587
2470
|
body: await parseBody(output.body, context),
|
|
2588
2471
|
};
|
|
2589
|
-
let response;
|
|
2590
2472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
2473
|
switch (errorCode) {
|
|
2592
2474
|
case "DependencyTimeoutException":
|
|
@@ -2609,14 +2491,12 @@ const deserializeAws_json1_1RevokeGrantCommandError = async (output, context) =>
|
|
|
2609
2491
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2610
2492
|
default:
|
|
2611
2493
|
const parsedBody = parsedOutput.body;
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
$metadata,
|
|
2494
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2495
|
+
output,
|
|
2496
|
+
parsedBody,
|
|
2497
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2498
|
+
errorCode,
|
|
2618
2499
|
});
|
|
2619
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2620
2500
|
}
|
|
2621
2501
|
};
|
|
2622
2502
|
const deserializeAws_json1_1ScheduleKeyDeletionCommand = async (output, context) => {
|
|
@@ -2638,7 +2518,6 @@ const deserializeAws_json1_1ScheduleKeyDeletionCommandError = async (output, con
|
|
|
2638
2518
|
...output,
|
|
2639
2519
|
body: await parseBody(output.body, context),
|
|
2640
2520
|
};
|
|
2641
|
-
let response;
|
|
2642
2521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2643
2522
|
switch (errorCode) {
|
|
2644
2523
|
case "DependencyTimeoutException":
|
|
@@ -2658,14 +2537,12 @@ const deserializeAws_json1_1ScheduleKeyDeletionCommandError = async (output, con
|
|
|
2658
2537
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2659
2538
|
default:
|
|
2660
2539
|
const parsedBody = parsedOutput.body;
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
$metadata,
|
|
2540
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2541
|
+
output,
|
|
2542
|
+
parsedBody,
|
|
2543
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2544
|
+
errorCode,
|
|
2667
2545
|
});
|
|
2668
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2669
2546
|
}
|
|
2670
2547
|
};
|
|
2671
2548
|
const deserializeAws_json1_1SignCommand = async (output, context) => {
|
|
@@ -2687,7 +2564,6 @@ const deserializeAws_json1_1SignCommandError = async (output, context) => {
|
|
|
2687
2564
|
...output,
|
|
2688
2565
|
body: await parseBody(output.body, context),
|
|
2689
2566
|
};
|
|
2690
|
-
let response;
|
|
2691
2567
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2692
2568
|
switch (errorCode) {
|
|
2693
2569
|
case "DependencyTimeoutException":
|
|
@@ -2716,14 +2592,12 @@ const deserializeAws_json1_1SignCommandError = async (output, context) => {
|
|
|
2716
2592
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2717
2593
|
default:
|
|
2718
2594
|
const parsedBody = parsedOutput.body;
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
$metadata,
|
|
2595
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2596
|
+
output,
|
|
2597
|
+
parsedBody,
|
|
2598
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2599
|
+
errorCode,
|
|
2725
2600
|
});
|
|
2726
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2727
2601
|
}
|
|
2728
2602
|
};
|
|
2729
2603
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2742,7 +2616,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2742
2616
|
...output,
|
|
2743
2617
|
body: await parseBody(output.body, context),
|
|
2744
2618
|
};
|
|
2745
|
-
let response;
|
|
2746
2619
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2620
|
switch (errorCode) {
|
|
2748
2621
|
case "InvalidArnException":
|
|
@@ -2765,14 +2638,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2765
2638
|
throw await deserializeAws_json1_1TagExceptionResponse(parsedOutput, context);
|
|
2766
2639
|
default:
|
|
2767
2640
|
const parsedBody = parsedOutput.body;
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
$metadata,
|
|
2641
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2642
|
+
output,
|
|
2643
|
+
parsedBody,
|
|
2644
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2645
|
+
errorCode,
|
|
2774
2646
|
});
|
|
2775
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2776
2647
|
}
|
|
2777
2648
|
};
|
|
2778
2649
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2791,7 +2662,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2791
2662
|
...output,
|
|
2792
2663
|
body: await parseBody(output.body, context),
|
|
2793
2664
|
};
|
|
2794
|
-
let response;
|
|
2795
2665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
2666
|
switch (errorCode) {
|
|
2797
2667
|
case "InvalidArnException":
|
|
@@ -2811,14 +2681,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2811
2681
|
throw await deserializeAws_json1_1TagExceptionResponse(parsedOutput, context);
|
|
2812
2682
|
default:
|
|
2813
2683
|
const parsedBody = parsedOutput.body;
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
$metadata,
|
|
2684
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2685
|
+
output,
|
|
2686
|
+
parsedBody,
|
|
2687
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2688
|
+
errorCode,
|
|
2820
2689
|
});
|
|
2821
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2822
2690
|
}
|
|
2823
2691
|
};
|
|
2824
2692
|
const deserializeAws_json1_1UpdateAliasCommand = async (output, context) => {
|
|
@@ -2837,7 +2705,6 @@ const deserializeAws_json1_1UpdateAliasCommandError = async (output, context) =>
|
|
|
2837
2705
|
...output,
|
|
2838
2706
|
body: await parseBody(output.body, context),
|
|
2839
2707
|
};
|
|
2840
|
-
let response;
|
|
2841
2708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2842
2709
|
switch (errorCode) {
|
|
2843
2710
|
case "DependencyTimeoutException":
|
|
@@ -2857,14 +2724,12 @@ const deserializeAws_json1_1UpdateAliasCommandError = async (output, context) =>
|
|
|
2857
2724
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2858
2725
|
default:
|
|
2859
2726
|
const parsedBody = parsedOutput.body;
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
$metadata,
|
|
2727
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2728
|
+
output,
|
|
2729
|
+
parsedBody,
|
|
2730
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2731
|
+
errorCode,
|
|
2866
2732
|
});
|
|
2867
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2868
2733
|
}
|
|
2869
2734
|
};
|
|
2870
2735
|
const deserializeAws_json1_1UpdateCustomKeyStoreCommand = async (output, context) => {
|
|
@@ -2886,7 +2751,6 @@ const deserializeAws_json1_1UpdateCustomKeyStoreCommandError = async (output, co
|
|
|
2886
2751
|
...output,
|
|
2887
2752
|
body: await parseBody(output.body, context),
|
|
2888
2753
|
};
|
|
2889
|
-
let response;
|
|
2890
2754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2755
|
switch (errorCode) {
|
|
2892
2756
|
case "CloudHsmClusterInvalidConfigurationException":
|
|
@@ -2915,14 +2779,12 @@ const deserializeAws_json1_1UpdateCustomKeyStoreCommandError = async (output, co
|
|
|
2915
2779
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
2916
2780
|
default:
|
|
2917
2781
|
const parsedBody = parsedOutput.body;
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
$metadata,
|
|
2782
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2783
|
+
output,
|
|
2784
|
+
parsedBody,
|
|
2785
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2786
|
+
errorCode,
|
|
2924
2787
|
});
|
|
2925
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2926
2788
|
}
|
|
2927
2789
|
};
|
|
2928
2790
|
const deserializeAws_json1_1UpdateKeyDescriptionCommand = async (output, context) => {
|
|
@@ -2941,7 +2803,6 @@ const deserializeAws_json1_1UpdateKeyDescriptionCommandError = async (output, co
|
|
|
2941
2803
|
...output,
|
|
2942
2804
|
body: await parseBody(output.body, context),
|
|
2943
2805
|
};
|
|
2944
|
-
let response;
|
|
2945
2806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2946
2807
|
switch (errorCode) {
|
|
2947
2808
|
case "DependencyTimeoutException":
|
|
@@ -2961,14 +2822,12 @@ const deserializeAws_json1_1UpdateKeyDescriptionCommandError = async (output, co
|
|
|
2961
2822
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2962
2823
|
default:
|
|
2963
2824
|
const parsedBody = parsedOutput.body;
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
$metadata,
|
|
2825
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2826
|
+
output,
|
|
2827
|
+
parsedBody,
|
|
2828
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2829
|
+
errorCode,
|
|
2970
2830
|
});
|
|
2971
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2972
2831
|
}
|
|
2973
2832
|
};
|
|
2974
2833
|
const deserializeAws_json1_1UpdatePrimaryRegionCommand = async (output, context) => {
|
|
@@ -2987,7 +2846,6 @@ const deserializeAws_json1_1UpdatePrimaryRegionCommandError = async (output, con
|
|
|
2987
2846
|
...output,
|
|
2988
2847
|
body: await parseBody(output.body, context),
|
|
2989
2848
|
};
|
|
2990
|
-
let response;
|
|
2991
2849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2992
2850
|
switch (errorCode) {
|
|
2993
2851
|
case "DisabledException":
|
|
@@ -3010,14 +2868,12 @@ const deserializeAws_json1_1UpdatePrimaryRegionCommandError = async (output, con
|
|
|
3010
2868
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3011
2869
|
default:
|
|
3012
2870
|
const parsedBody = parsedOutput.body;
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
$metadata,
|
|
2871
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2872
|
+
output,
|
|
2873
|
+
parsedBody,
|
|
2874
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2875
|
+
errorCode,
|
|
3019
2876
|
});
|
|
3020
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3021
2877
|
}
|
|
3022
2878
|
};
|
|
3023
2879
|
const deserializeAws_json1_1VerifyCommand = async (output, context) => {
|
|
@@ -3039,7 +2895,6 @@ const deserializeAws_json1_1VerifyCommandError = async (output, context) => {
|
|
|
3039
2895
|
...output,
|
|
3040
2896
|
body: await parseBody(output.body, context),
|
|
3041
2897
|
};
|
|
3042
|
-
let response;
|
|
3043
2898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3044
2899
|
switch (errorCode) {
|
|
3045
2900
|
case "DependencyTimeoutException":
|
|
@@ -3071,14 +2926,12 @@ const deserializeAws_json1_1VerifyCommandError = async (output, context) => {
|
|
|
3071
2926
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
3072
2927
|
default:
|
|
3073
2928
|
const parsedBody = parsedOutput.body;
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
$metadata,
|
|
2929
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2930
|
+
output,
|
|
2931
|
+
parsedBody,
|
|
2932
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2933
|
+
errorCode,
|
|
3080
2934
|
});
|
|
3081
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3082
2935
|
}
|
|
3083
2936
|
};
|
|
3084
2937
|
const deserializeAws_json1_1VerifyMacCommand = async (output, context) => {
|
|
@@ -3100,7 +2953,6 @@ const deserializeAws_json1_1VerifyMacCommandError = async (output, context) => {
|
|
|
3100
2953
|
...output,
|
|
3101
2954
|
body: await parseBody(output.body, context),
|
|
3102
2955
|
};
|
|
3103
|
-
let response;
|
|
3104
2956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3105
2957
|
switch (errorCode) {
|
|
3106
2958
|
case "DisabledException":
|
|
@@ -3129,14 +2981,12 @@ const deserializeAws_json1_1VerifyMacCommandError = async (output, context) => {
|
|
|
3129
2981
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
3130
2982
|
default:
|
|
3131
2983
|
const parsedBody = parsedOutput.body;
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
$metadata,
|
|
2984
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2985
|
+
output,
|
|
2986
|
+
parsedBody,
|
|
2987
|
+
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2988
|
+
errorCode,
|
|
3138
2989
|
});
|
|
3139
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3140
2990
|
}
|
|
3141
2991
|
};
|
|
3142
2992
|
const deserializeAws_json1_1AlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3677,9 +3527,6 @@ const serializeAws_json1_1GrantOperationList = (input, context) => {
|
|
|
3677
3527
|
return input
|
|
3678
3528
|
.filter((e) => e != null)
|
|
3679
3529
|
.map((entry) => {
|
|
3680
|
-
if (entry === null) {
|
|
3681
|
-
return null;
|
|
3682
|
-
}
|
|
3683
3530
|
return entry;
|
|
3684
3531
|
});
|
|
3685
3532
|
};
|
|
@@ -3687,9 +3534,6 @@ const serializeAws_json1_1GrantTokenList = (input, context) => {
|
|
|
3687
3534
|
return input
|
|
3688
3535
|
.filter((e) => e != null)
|
|
3689
3536
|
.map((entry) => {
|
|
3690
|
-
if (entry === null) {
|
|
3691
|
-
return null;
|
|
3692
|
-
}
|
|
3693
3537
|
return entry;
|
|
3694
3538
|
});
|
|
3695
3539
|
};
|
|
@@ -3825,9 +3669,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
3825
3669
|
return input
|
|
3826
3670
|
.filter((e) => e != null)
|
|
3827
3671
|
.map((entry) => {
|
|
3828
|
-
if (entry === null) {
|
|
3829
|
-
return null;
|
|
3830
|
-
}
|
|
3831
3672
|
return entry;
|
|
3832
3673
|
});
|
|
3833
3674
|
};
|
|
@@ -3835,9 +3676,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3835
3676
|
return input
|
|
3836
3677
|
.filter((e) => e != null)
|
|
3837
3678
|
.map((entry) => {
|
|
3838
|
-
if (entry === null) {
|
|
3839
|
-
return null;
|
|
3840
|
-
}
|
|
3841
3679
|
return serializeAws_json1_1Tag(entry, context);
|
|
3842
3680
|
});
|
|
3843
3681
|
};
|