@aws-sdk/client-payment-cryptography 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +27 -736
- package/dist-es/protocols/Aws_json1_0.js +54 -763
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -648,7 +648,7 @@ var se_UpdateAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
648
648
|
}, "se_UpdateAliasCommand");
|
|
649
649
|
var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
650
650
|
if (output.statusCode >= 300) {
|
|
651
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
652
652
|
}
|
|
653
653
|
const data = await parseBody(output.body, context);
|
|
654
654
|
let contents = {};
|
|
@@ -659,49 +659,9 @@ var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
659
659
|
};
|
|
660
660
|
return response;
|
|
661
661
|
}, "de_CreateAliasCommand");
|
|
662
|
-
var de_CreateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
663
|
-
const parsedOutput = {
|
|
664
|
-
...output,
|
|
665
|
-
body: await parseErrorBody(output.body, context)
|
|
666
|
-
};
|
|
667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
|
-
switch (errorCode) {
|
|
669
|
-
case "AccessDeniedException":
|
|
670
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
671
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ConflictException":
|
|
673
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
674
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
675
|
-
case "InternalServerException":
|
|
676
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
677
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ResourceNotFoundException":
|
|
679
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
680
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ServiceQuotaExceededException":
|
|
682
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
683
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ServiceUnavailableException":
|
|
685
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
686
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ThrottlingException":
|
|
688
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
689
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ValidationException":
|
|
691
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
692
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
693
|
-
default:
|
|
694
|
-
const parsedBody = parsedOutput.body;
|
|
695
|
-
return throwDefaultError({
|
|
696
|
-
output,
|
|
697
|
-
parsedBody,
|
|
698
|
-
errorCode
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
}, "de_CreateAliasCommandError");
|
|
702
662
|
var de_CreateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
703
663
|
if (output.statusCode >= 300) {
|
|
704
|
-
return
|
|
664
|
+
return de_CommandError(output, context);
|
|
705
665
|
}
|
|
706
666
|
const data = await parseBody(output.body, context);
|
|
707
667
|
let contents = {};
|
|
@@ -712,49 +672,9 @@ var de_CreateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
712
672
|
};
|
|
713
673
|
return response;
|
|
714
674
|
}, "de_CreateKeyCommand");
|
|
715
|
-
var de_CreateKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
-
const parsedOutput = {
|
|
717
|
-
...output,
|
|
718
|
-
body: await parseErrorBody(output.body, context)
|
|
719
|
-
};
|
|
720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
-
switch (errorCode) {
|
|
722
|
-
case "AccessDeniedException":
|
|
723
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
724
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ConflictException":
|
|
726
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
727
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
728
|
-
case "InternalServerException":
|
|
729
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
730
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ResourceNotFoundException":
|
|
732
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
733
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
734
|
-
case "ServiceQuotaExceededException":
|
|
735
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
736
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ServiceUnavailableException":
|
|
738
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
739
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ThrottlingException":
|
|
741
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
742
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ValidationException":
|
|
744
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
745
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
}, "de_CreateKeyCommandError");
|
|
755
675
|
var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
676
|
if (output.statusCode >= 300) {
|
|
757
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
758
678
|
}
|
|
759
679
|
const data = await parseBody(output.body, context);
|
|
760
680
|
let contents = {};
|
|
@@ -765,46 +685,9 @@ var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
765
685
|
};
|
|
766
686
|
return response;
|
|
767
687
|
}, "de_DeleteAliasCommand");
|
|
768
|
-
var de_DeleteAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context)
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "AccessDeniedException":
|
|
776
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ConflictException":
|
|
779
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
781
|
-
case "InternalServerException":
|
|
782
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
783
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ResourceNotFoundException":
|
|
785
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
786
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ServiceUnavailableException":
|
|
788
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
789
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
790
|
-
case "ThrottlingException":
|
|
791
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
792
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ValidationException":
|
|
794
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
795
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
796
|
-
default:
|
|
797
|
-
const parsedBody = parsedOutput.body;
|
|
798
|
-
return throwDefaultError({
|
|
799
|
-
output,
|
|
800
|
-
parsedBody,
|
|
801
|
-
errorCode
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
}, "de_DeleteAliasCommandError");
|
|
805
688
|
var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
806
689
|
if (output.statusCode >= 300) {
|
|
807
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
808
691
|
}
|
|
809
692
|
const data = await parseBody(output.body, context);
|
|
810
693
|
let contents = {};
|
|
@@ -815,46 +698,9 @@ var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
815
698
|
};
|
|
816
699
|
return response;
|
|
817
700
|
}, "de_DeleteKeyCommand");
|
|
818
|
-
var de_DeleteKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
819
|
-
const parsedOutput = {
|
|
820
|
-
...output,
|
|
821
|
-
body: await parseErrorBody(output.body, context)
|
|
822
|
-
};
|
|
823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
-
switch (errorCode) {
|
|
825
|
-
case "AccessDeniedException":
|
|
826
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ConflictException":
|
|
829
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
830
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
831
|
-
case "InternalServerException":
|
|
832
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ResourceNotFoundException":
|
|
835
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ServiceUnavailableException":
|
|
838
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
839
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ThrottlingException":
|
|
841
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
842
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ValidationException":
|
|
844
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
845
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
846
|
-
default:
|
|
847
|
-
const parsedBody = parsedOutput.body;
|
|
848
|
-
return throwDefaultError({
|
|
849
|
-
output,
|
|
850
|
-
parsedBody,
|
|
851
|
-
errorCode
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
}, "de_DeleteKeyCommandError");
|
|
855
701
|
var de_ExportKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
856
702
|
if (output.statusCode >= 300) {
|
|
857
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
858
704
|
}
|
|
859
705
|
const data = await parseBody(output.body, context);
|
|
860
706
|
let contents = {};
|
|
@@ -865,46 +711,9 @@ var de_ExportKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
865
711
|
};
|
|
866
712
|
return response;
|
|
867
713
|
}, "de_ExportKeyCommand");
|
|
868
|
-
var de_ExportKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
869
|
-
const parsedOutput = {
|
|
870
|
-
...output,
|
|
871
|
-
body: await parseErrorBody(output.body, context)
|
|
872
|
-
};
|
|
873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
-
switch (errorCode) {
|
|
875
|
-
case "AccessDeniedException":
|
|
876
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
877
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ConflictException":
|
|
879
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
880
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InternalServerException":
|
|
882
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
883
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ResourceNotFoundException":
|
|
885
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ServiceUnavailableException":
|
|
888
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
889
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ThrottlingException":
|
|
891
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
892
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ValidationException":
|
|
894
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
895
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
896
|
-
default:
|
|
897
|
-
const parsedBody = parsedOutput.body;
|
|
898
|
-
return throwDefaultError({
|
|
899
|
-
output,
|
|
900
|
-
parsedBody,
|
|
901
|
-
errorCode
|
|
902
|
-
});
|
|
903
|
-
}
|
|
904
|
-
}, "de_ExportKeyCommandError");
|
|
905
714
|
var de_GetAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
906
715
|
if (output.statusCode >= 300) {
|
|
907
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
908
717
|
}
|
|
909
718
|
const data = await parseBody(output.body, context);
|
|
910
719
|
let contents = {};
|
|
@@ -915,43 +724,9 @@ var de_GetAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
915
724
|
};
|
|
916
725
|
return response;
|
|
917
726
|
}, "de_GetAliasCommand");
|
|
918
|
-
var de_GetAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context)
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "AccessDeniedException":
|
|
926
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InternalServerException":
|
|
929
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
930
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ServiceUnavailableException":
|
|
935
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
936
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ThrottlingException":
|
|
938
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ValidationException":
|
|
941
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
}, "de_GetAliasCommandError");
|
|
952
727
|
var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
728
|
if (output.statusCode >= 300) {
|
|
954
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
955
730
|
}
|
|
956
731
|
const data = await parseBody(output.body, context);
|
|
957
732
|
let contents = {};
|
|
@@ -962,43 +737,9 @@ var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
962
737
|
};
|
|
963
738
|
return response;
|
|
964
739
|
}, "de_GetKeyCommand");
|
|
965
|
-
var de_GetKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await parseErrorBody(output.body, context)
|
|
969
|
-
};
|
|
970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "AccessDeniedException":
|
|
973
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
975
|
-
case "InternalServerException":
|
|
976
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
977
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ResourceNotFoundException":
|
|
979
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
980
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ServiceUnavailableException":
|
|
982
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
983
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ThrottlingException":
|
|
985
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
986
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ValidationException":
|
|
988
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
}, "de_GetKeyCommandError");
|
|
999
740
|
var de_GetParametersForExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
741
|
if (output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
742
|
+
return de_CommandError(output, context);
|
|
1002
743
|
}
|
|
1003
744
|
const data = await parseBody(output.body, context);
|
|
1004
745
|
let contents = {};
|
|
@@ -1009,49 +750,9 @@ var de_GetParametersForExportCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1009
750
|
};
|
|
1010
751
|
return response;
|
|
1011
752
|
}, "de_GetParametersForExportCommand");
|
|
1012
|
-
var de_GetParametersForExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
|
-
const parsedOutput = {
|
|
1014
|
-
...output,
|
|
1015
|
-
body: await parseErrorBody(output.body, context)
|
|
1016
|
-
};
|
|
1017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
-
switch (errorCode) {
|
|
1019
|
-
case "AccessDeniedException":
|
|
1020
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1021
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ConflictException":
|
|
1023
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1024
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "InternalServerException":
|
|
1026
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1027
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "ResourceNotFoundException":
|
|
1029
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ServiceQuotaExceededException":
|
|
1032
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1033
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ServiceUnavailableException":
|
|
1035
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1036
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ThrottlingException":
|
|
1038
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1039
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "ValidationException":
|
|
1041
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1042
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1043
|
-
default:
|
|
1044
|
-
const parsedBody = parsedOutput.body;
|
|
1045
|
-
return throwDefaultError({
|
|
1046
|
-
output,
|
|
1047
|
-
parsedBody,
|
|
1048
|
-
errorCode
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
}, "de_GetParametersForExportCommandError");
|
|
1052
753
|
var de_GetParametersForImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1053
754
|
if (output.statusCode >= 300) {
|
|
1054
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
1055
756
|
}
|
|
1056
757
|
const data = await parseBody(output.body, context);
|
|
1057
758
|
let contents = {};
|
|
@@ -1062,49 +763,9 @@ var de_GetParametersForImportCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1062
763
|
};
|
|
1063
764
|
return response;
|
|
1064
765
|
}, "de_GetParametersForImportCommand");
|
|
1065
|
-
var de_GetParametersForImportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
|
-
const parsedOutput = {
|
|
1067
|
-
...output,
|
|
1068
|
-
body: await parseErrorBody(output.body, context)
|
|
1069
|
-
};
|
|
1070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
|
-
switch (errorCode) {
|
|
1072
|
-
case "AccessDeniedException":
|
|
1073
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1074
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ConflictException":
|
|
1076
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1077
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "InternalServerException":
|
|
1079
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1080
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ResourceNotFoundException":
|
|
1082
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1083
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ServiceQuotaExceededException":
|
|
1085
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1086
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "ServiceUnavailableException":
|
|
1088
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1089
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ThrottlingException":
|
|
1091
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1092
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ValidationException":
|
|
1094
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
-
default:
|
|
1097
|
-
const parsedBody = parsedOutput.body;
|
|
1098
|
-
return throwDefaultError({
|
|
1099
|
-
output,
|
|
1100
|
-
parsedBody,
|
|
1101
|
-
errorCode
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
}, "de_GetParametersForImportCommandError");
|
|
1105
766
|
var de_GetPublicKeyCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1106
767
|
if (output.statusCode >= 300) {
|
|
1107
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
1108
769
|
}
|
|
1109
770
|
const data = await parseBody(output.body, context);
|
|
1110
771
|
let contents = {};
|
|
@@ -1115,43 +776,9 @@ var de_GetPublicKeyCertificateCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1115
776
|
};
|
|
1116
777
|
return response;
|
|
1117
778
|
}, "de_GetPublicKeyCertificateCommand");
|
|
1118
|
-
var de_GetPublicKeyCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1119
|
-
const parsedOutput = {
|
|
1120
|
-
...output,
|
|
1121
|
-
body: await parseErrorBody(output.body, context)
|
|
1122
|
-
};
|
|
1123
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
|
-
switch (errorCode) {
|
|
1125
|
-
case "AccessDeniedException":
|
|
1126
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1127
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "InternalServerException":
|
|
1129
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1130
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "ResourceNotFoundException":
|
|
1132
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1133
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "ServiceUnavailableException":
|
|
1135
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1136
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ThrottlingException":
|
|
1138
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1139
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ValidationException":
|
|
1141
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1142
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1143
|
-
default:
|
|
1144
|
-
const parsedBody = parsedOutput.body;
|
|
1145
|
-
return throwDefaultError({
|
|
1146
|
-
output,
|
|
1147
|
-
parsedBody,
|
|
1148
|
-
errorCode
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
}, "de_GetPublicKeyCertificateCommandError");
|
|
1152
779
|
var de_ImportKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1153
780
|
if (output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1155
782
|
}
|
|
1156
783
|
const data = await parseBody(output.body, context);
|
|
1157
784
|
let contents = {};
|
|
@@ -1162,49 +789,9 @@ var de_ImportKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1162
789
|
};
|
|
1163
790
|
return response;
|
|
1164
791
|
}, "de_ImportKeyCommand");
|
|
1165
|
-
var de_ImportKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1166
|
-
const parsedOutput = {
|
|
1167
|
-
...output,
|
|
1168
|
-
body: await parseErrorBody(output.body, context)
|
|
1169
|
-
};
|
|
1170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
-
switch (errorCode) {
|
|
1172
|
-
case "AccessDeniedException":
|
|
1173
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1174
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ConflictException":
|
|
1176
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "InternalServerException":
|
|
1179
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ResourceNotFoundException":
|
|
1182
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ServiceQuotaExceededException":
|
|
1185
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1186
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ServiceUnavailableException":
|
|
1188
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1189
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ThrottlingException":
|
|
1191
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1192
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ValidationException":
|
|
1194
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1195
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1196
|
-
default:
|
|
1197
|
-
const parsedBody = parsedOutput.body;
|
|
1198
|
-
return throwDefaultError({
|
|
1199
|
-
output,
|
|
1200
|
-
parsedBody,
|
|
1201
|
-
errorCode
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
}, "de_ImportKeyCommandError");
|
|
1205
792
|
var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
793
|
if (output.statusCode >= 300) {
|
|
1207
|
-
return
|
|
794
|
+
return de_CommandError(output, context);
|
|
1208
795
|
}
|
|
1209
796
|
const data = await parseBody(output.body, context);
|
|
1210
797
|
let contents = {};
|
|
@@ -1213,45 +800,11 @@ var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1213
800
|
$metadata: deserializeMetadata(output),
|
|
1214
801
|
...contents
|
|
1215
802
|
};
|
|
1216
|
-
return response;
|
|
1217
|
-
}, "de_ListAliasesCommand");
|
|
1218
|
-
var de_ListAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1219
|
-
const parsedOutput = {
|
|
1220
|
-
...output,
|
|
1221
|
-
body: await parseErrorBody(output.body, context)
|
|
1222
|
-
};
|
|
1223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
-
switch (errorCode) {
|
|
1225
|
-
case "AccessDeniedException":
|
|
1226
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1227
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "InternalServerException":
|
|
1229
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1230
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "ResourceNotFoundException":
|
|
1232
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1233
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "ServiceUnavailableException":
|
|
1235
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1236
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ThrottlingException":
|
|
1238
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1239
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ValidationException":
|
|
1241
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1242
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}, "de_ListAliasesCommandError");
|
|
803
|
+
return response;
|
|
804
|
+
}, "de_ListAliasesCommand");
|
|
1252
805
|
var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
806
|
if (output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1255
808
|
}
|
|
1256
809
|
const data = await parseBody(output.body, context);
|
|
1257
810
|
let contents = {};
|
|
@@ -1262,43 +815,9 @@ var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1262
815
|
};
|
|
1263
816
|
return response;
|
|
1264
817
|
}, "de_ListKeysCommand");
|
|
1265
|
-
var de_ListKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
|
-
const parsedOutput = {
|
|
1267
|
-
...output,
|
|
1268
|
-
body: await parseErrorBody(output.body, context)
|
|
1269
|
-
};
|
|
1270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
-
switch (errorCode) {
|
|
1272
|
-
case "AccessDeniedException":
|
|
1273
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1274
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "InternalServerException":
|
|
1276
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1277
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ResourceNotFoundException":
|
|
1279
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1280
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ServiceUnavailableException":
|
|
1282
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1283
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ThrottlingException":
|
|
1285
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1286
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "ValidationException":
|
|
1288
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1289
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1290
|
-
default:
|
|
1291
|
-
const parsedBody = parsedOutput.body;
|
|
1292
|
-
return throwDefaultError({
|
|
1293
|
-
output,
|
|
1294
|
-
parsedBody,
|
|
1295
|
-
errorCode
|
|
1296
|
-
});
|
|
1297
|
-
}
|
|
1298
|
-
}, "de_ListKeysCommandError");
|
|
1299
818
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1300
819
|
if (output.statusCode >= 300) {
|
|
1301
|
-
return
|
|
820
|
+
return de_CommandError(output, context);
|
|
1302
821
|
}
|
|
1303
822
|
const data = await parseBody(output.body, context);
|
|
1304
823
|
let contents = {};
|
|
@@ -1309,43 +828,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1309
828
|
};
|
|
1310
829
|
return response;
|
|
1311
830
|
}, "de_ListTagsForResourceCommand");
|
|
1312
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1313
|
-
const parsedOutput = {
|
|
1314
|
-
...output,
|
|
1315
|
-
body: await parseErrorBody(output.body, context)
|
|
1316
|
-
};
|
|
1317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
-
switch (errorCode) {
|
|
1319
|
-
case "AccessDeniedException":
|
|
1320
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1321
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "InternalServerException":
|
|
1323
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ResourceNotFoundException":
|
|
1326
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ServiceUnavailableException":
|
|
1329
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1330
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ThrottlingException":
|
|
1332
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1333
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ValidationException":
|
|
1335
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
|
-
default:
|
|
1338
|
-
const parsedBody = parsedOutput.body;
|
|
1339
|
-
return throwDefaultError({
|
|
1340
|
-
output,
|
|
1341
|
-
parsedBody,
|
|
1342
|
-
errorCode
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1346
831
|
var de_RestoreKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1347
832
|
if (output.statusCode >= 300) {
|
|
1348
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
1349
834
|
}
|
|
1350
835
|
const data = await parseBody(output.body, context);
|
|
1351
836
|
let contents = {};
|
|
@@ -1356,49 +841,9 @@ var de_RestoreKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1356
841
|
};
|
|
1357
842
|
return response;
|
|
1358
843
|
}, "de_RestoreKeyCommand");
|
|
1359
|
-
var de_RestoreKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context)
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "AccessDeniedException":
|
|
1367
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ConflictException":
|
|
1370
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1371
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "InternalServerException":
|
|
1373
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1374
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ResourceNotFoundException":
|
|
1376
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1377
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ServiceQuotaExceededException":
|
|
1379
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1380
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ServiceUnavailableException":
|
|
1382
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1383
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ThrottlingException":
|
|
1385
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1386
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ValidationException":
|
|
1388
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1389
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1390
|
-
default:
|
|
1391
|
-
const parsedBody = parsedOutput.body;
|
|
1392
|
-
return throwDefaultError({
|
|
1393
|
-
output,
|
|
1394
|
-
parsedBody,
|
|
1395
|
-
errorCode
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
}, "de_RestoreKeyCommandError");
|
|
1399
844
|
var de_StartKeyUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1400
845
|
if (output.statusCode >= 300) {
|
|
1401
|
-
return
|
|
846
|
+
return de_CommandError(output, context);
|
|
1402
847
|
}
|
|
1403
848
|
const data = await parseBody(output.body, context);
|
|
1404
849
|
let contents = {};
|
|
@@ -1409,49 +854,9 @@ var de_StartKeyUsageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1409
854
|
};
|
|
1410
855
|
return response;
|
|
1411
856
|
}, "de_StartKeyUsageCommand");
|
|
1412
|
-
var de_StartKeyUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context)
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "AccessDeniedException":
|
|
1420
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ConflictException":
|
|
1423
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1424
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "InternalServerException":
|
|
1426
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ResourceNotFoundException":
|
|
1429
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ServiceQuotaExceededException":
|
|
1432
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1433
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ServiceUnavailableException":
|
|
1435
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1436
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ThrottlingException":
|
|
1438
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1439
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ValidationException":
|
|
1441
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
return throwDefaultError({
|
|
1446
|
-
output,
|
|
1447
|
-
parsedBody,
|
|
1448
|
-
errorCode
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
}, "de_StartKeyUsageCommandError");
|
|
1452
857
|
var de_StopKeyUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
858
|
if (output.statusCode >= 300) {
|
|
1454
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
1455
860
|
}
|
|
1456
861
|
const data = await parseBody(output.body, context);
|
|
1457
862
|
let contents = {};
|
|
@@ -1462,49 +867,9 @@ var de_StopKeyUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1462
867
|
};
|
|
1463
868
|
return response;
|
|
1464
869
|
}, "de_StopKeyUsageCommand");
|
|
1465
|
-
var de_StopKeyUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
|
-
const parsedOutput = {
|
|
1467
|
-
...output,
|
|
1468
|
-
body: await parseErrorBody(output.body, context)
|
|
1469
|
-
};
|
|
1470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
-
switch (errorCode) {
|
|
1472
|
-
case "AccessDeniedException":
|
|
1473
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1474
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ConflictException":
|
|
1476
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1477
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "InternalServerException":
|
|
1479
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1480
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ResourceNotFoundException":
|
|
1482
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ServiceQuotaExceededException":
|
|
1485
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1486
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ServiceUnavailableException":
|
|
1488
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1489
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ThrottlingException":
|
|
1491
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1492
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ValidationException":
|
|
1494
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1496
|
-
default:
|
|
1497
|
-
const parsedBody = parsedOutput.body;
|
|
1498
|
-
return throwDefaultError({
|
|
1499
|
-
output,
|
|
1500
|
-
parsedBody,
|
|
1501
|
-
errorCode
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
}, "de_StopKeyUsageCommandError");
|
|
1505
870
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1506
871
|
if (output.statusCode >= 300) {
|
|
1507
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
1508
873
|
}
|
|
1509
874
|
const data = await parseBody(output.body, context);
|
|
1510
875
|
let contents = {};
|
|
@@ -1515,49 +880,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1515
880
|
};
|
|
1516
881
|
return response;
|
|
1517
882
|
}, "de_TagResourceCommand");
|
|
1518
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1519
|
-
const parsedOutput = {
|
|
1520
|
-
...output,
|
|
1521
|
-
body: await parseErrorBody(output.body, context)
|
|
1522
|
-
};
|
|
1523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
-
switch (errorCode) {
|
|
1525
|
-
case "AccessDeniedException":
|
|
1526
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1527
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ConflictException":
|
|
1529
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1530
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "InternalServerException":
|
|
1532
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1533
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "ResourceNotFoundException":
|
|
1535
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1536
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "ServiceQuotaExceededException":
|
|
1538
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1539
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ServiceUnavailableException":
|
|
1541
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1542
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ThrottlingException":
|
|
1544
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1545
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ValidationException":
|
|
1547
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1549
|
-
default:
|
|
1550
|
-
const parsedBody = parsedOutput.body;
|
|
1551
|
-
return throwDefaultError({
|
|
1552
|
-
output,
|
|
1553
|
-
parsedBody,
|
|
1554
|
-
errorCode
|
|
1555
|
-
});
|
|
1556
|
-
}
|
|
1557
|
-
}, "de_TagResourceCommandError");
|
|
1558
883
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1559
884
|
if (output.statusCode >= 300) {
|
|
1560
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
1561
886
|
}
|
|
1562
887
|
const data = await parseBody(output.body, context);
|
|
1563
888
|
let contents = {};
|
|
@@ -1568,46 +893,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1568
893
|
};
|
|
1569
894
|
return response;
|
|
1570
895
|
}, "de_UntagResourceCommand");
|
|
1571
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
|
-
const parsedOutput = {
|
|
1573
|
-
...output,
|
|
1574
|
-
body: await parseErrorBody(output.body, context)
|
|
1575
|
-
};
|
|
1576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
|
-
switch (errorCode) {
|
|
1578
|
-
case "AccessDeniedException":
|
|
1579
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1580
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "ConflictException":
|
|
1582
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1583
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "InternalServerException":
|
|
1585
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ResourceNotFoundException":
|
|
1588
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ServiceUnavailableException":
|
|
1591
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1592
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ThrottlingException":
|
|
1594
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1595
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "ValidationException":
|
|
1597
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1598
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1599
|
-
default:
|
|
1600
|
-
const parsedBody = parsedOutput.body;
|
|
1601
|
-
return throwDefaultError({
|
|
1602
|
-
output,
|
|
1603
|
-
parsedBody,
|
|
1604
|
-
errorCode
|
|
1605
|
-
});
|
|
1606
|
-
}
|
|
1607
|
-
}, "de_UntagResourceCommandError");
|
|
1608
896
|
var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1609
897
|
if (output.statusCode >= 300) {
|
|
1610
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1611
899
|
}
|
|
1612
900
|
const data = await parseBody(output.body, context);
|
|
1613
901
|
let contents = {};
|
|
@@ -1618,7 +906,7 @@ var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1618
906
|
};
|
|
1619
907
|
return response;
|
|
1620
908
|
}, "de_UpdateAliasCommand");
|
|
1621
|
-
var
|
|
909
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
910
|
const parsedOutput = {
|
|
1623
911
|
...output,
|
|
1624
912
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1637,6 +925,9 @@ var de_UpdateAliasCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1637
925
|
case "ResourceNotFoundException":
|
|
1638
926
|
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1639
927
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
928
|
+
case "ServiceQuotaExceededException":
|
|
929
|
+
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
930
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1640
931
|
case "ServiceUnavailableException":
|
|
1641
932
|
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1642
933
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1654,7 +945,7 @@ var de_UpdateAliasCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1654
945
|
errorCode
|
|
1655
946
|
});
|
|
1656
947
|
}
|
|
1657
|
-
}, "
|
|
948
|
+
}, "de_CommandError");
|
|
1658
949
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1659
950
|
const body = parsedOutput.body;
|
|
1660
951
|
const deserialized = (0, import_smithy_client._json)(body);
|