@aws-sdk/client-ses 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 +184 -1421
- package/dist-es/protocols/Aws_query.js +192 -1429
- package/package.json +3 -3
|
@@ -707,7 +707,7 @@ export const se_VerifyEmailIdentityCommand = async (input, context) => {
|
|
|
707
707
|
};
|
|
708
708
|
export const de_CloneReceiptRuleSetCommand = async (output, context) => {
|
|
709
709
|
if (output.statusCode >= 300) {
|
|
710
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
711
711
|
}
|
|
712
712
|
const data = await parseBody(output.body, context);
|
|
713
713
|
let contents = {};
|
|
@@ -718,34 +718,9 @@ export const de_CloneReceiptRuleSetCommand = async (output, context) => {
|
|
|
718
718
|
};
|
|
719
719
|
return response;
|
|
720
720
|
};
|
|
721
|
-
const de_CloneReceiptRuleSetCommandError = async (output, context) => {
|
|
722
|
-
const parsedOutput = {
|
|
723
|
-
...output,
|
|
724
|
-
body: await parseErrorBody(output.body, context),
|
|
725
|
-
};
|
|
726
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
727
|
-
switch (errorCode) {
|
|
728
|
-
case "AlreadyExists":
|
|
729
|
-
case "com.amazonaws.ses#AlreadyExistsException":
|
|
730
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
731
|
-
case "LimitExceeded":
|
|
732
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
733
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
734
|
-
case "RuleSetDoesNotExist":
|
|
735
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
736
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
737
|
-
default:
|
|
738
|
-
const parsedBody = parsedOutput.body;
|
|
739
|
-
return throwDefaultError({
|
|
740
|
-
output,
|
|
741
|
-
parsedBody: parsedBody.Error,
|
|
742
|
-
errorCode,
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
721
|
export const de_CreateConfigurationSetCommand = async (output, context) => {
|
|
747
722
|
if (output.statusCode >= 300) {
|
|
748
|
-
return
|
|
723
|
+
return de_CommandError(output, context);
|
|
749
724
|
}
|
|
750
725
|
const data = await parseBody(output.body, context);
|
|
751
726
|
let contents = {};
|
|
@@ -756,34 +731,9 @@ export const de_CreateConfigurationSetCommand = async (output, context) => {
|
|
|
756
731
|
};
|
|
757
732
|
return response;
|
|
758
733
|
};
|
|
759
|
-
const de_CreateConfigurationSetCommandError = async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context),
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "ConfigurationSetAlreadyExists":
|
|
767
|
-
case "com.amazonaws.ses#ConfigurationSetAlreadyExistsException":
|
|
768
|
-
throw await de_ConfigurationSetAlreadyExistsExceptionRes(parsedOutput, context);
|
|
769
|
-
case "InvalidConfigurationSet":
|
|
770
|
-
case "com.amazonaws.ses#InvalidConfigurationSetException":
|
|
771
|
-
throw await de_InvalidConfigurationSetExceptionRes(parsedOutput, context);
|
|
772
|
-
case "LimitExceeded":
|
|
773
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
774
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
775
|
-
default:
|
|
776
|
-
const parsedBody = parsedOutput.body;
|
|
777
|
-
return throwDefaultError({
|
|
778
|
-
output,
|
|
779
|
-
parsedBody: parsedBody.Error,
|
|
780
|
-
errorCode,
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
734
|
export const de_CreateConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
785
735
|
if (output.statusCode >= 300) {
|
|
786
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
787
737
|
}
|
|
788
738
|
const data = await parseBody(output.body, context);
|
|
789
739
|
let contents = {};
|
|
@@ -794,43 +744,9 @@ export const de_CreateConfigurationSetEventDestinationCommand = async (output, c
|
|
|
794
744
|
};
|
|
795
745
|
return response;
|
|
796
746
|
};
|
|
797
|
-
const de_CreateConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
798
|
-
const parsedOutput = {
|
|
799
|
-
...output,
|
|
800
|
-
body: await parseErrorBody(output.body, context),
|
|
801
|
-
};
|
|
802
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
803
|
-
switch (errorCode) {
|
|
804
|
-
case "ConfigurationSetDoesNotExist":
|
|
805
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
806
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
807
|
-
case "EventDestinationAlreadyExists":
|
|
808
|
-
case "com.amazonaws.ses#EventDestinationAlreadyExistsException":
|
|
809
|
-
throw await de_EventDestinationAlreadyExistsExceptionRes(parsedOutput, context);
|
|
810
|
-
case "InvalidCloudWatchDestination":
|
|
811
|
-
case "com.amazonaws.ses#InvalidCloudWatchDestinationException":
|
|
812
|
-
throw await de_InvalidCloudWatchDestinationExceptionRes(parsedOutput, context);
|
|
813
|
-
case "InvalidFirehoseDestination":
|
|
814
|
-
case "com.amazonaws.ses#InvalidFirehoseDestinationException":
|
|
815
|
-
throw await de_InvalidFirehoseDestinationExceptionRes(parsedOutput, context);
|
|
816
|
-
case "InvalidSNSDestination":
|
|
817
|
-
case "com.amazonaws.ses#InvalidSNSDestinationException":
|
|
818
|
-
throw await de_InvalidSNSDestinationExceptionRes(parsedOutput, context);
|
|
819
|
-
case "LimitExceeded":
|
|
820
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
821
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
return throwDefaultError({
|
|
825
|
-
output,
|
|
826
|
-
parsedBody: parsedBody.Error,
|
|
827
|
-
errorCode,
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
747
|
export const de_CreateConfigurationSetTrackingOptionsCommand = async (output, context) => {
|
|
832
748
|
if (output.statusCode >= 300) {
|
|
833
|
-
return
|
|
749
|
+
return de_CommandError(output, context);
|
|
834
750
|
}
|
|
835
751
|
const data = await parseBody(output.body, context);
|
|
836
752
|
let contents = {};
|
|
@@ -841,34 +757,9 @@ export const de_CreateConfigurationSetTrackingOptionsCommand = async (output, co
|
|
|
841
757
|
};
|
|
842
758
|
return response;
|
|
843
759
|
};
|
|
844
|
-
const de_CreateConfigurationSetTrackingOptionsCommandError = async (output, context) => {
|
|
845
|
-
const parsedOutput = {
|
|
846
|
-
...output,
|
|
847
|
-
body: await parseErrorBody(output.body, context),
|
|
848
|
-
};
|
|
849
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
850
|
-
switch (errorCode) {
|
|
851
|
-
case "ConfigurationSetDoesNotExist":
|
|
852
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
853
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
854
|
-
case "InvalidTrackingOptions":
|
|
855
|
-
case "com.amazonaws.ses#InvalidTrackingOptionsException":
|
|
856
|
-
throw await de_InvalidTrackingOptionsExceptionRes(parsedOutput, context);
|
|
857
|
-
case "TrackingOptionsAlreadyExistsException":
|
|
858
|
-
case "com.amazonaws.ses#TrackingOptionsAlreadyExistsException":
|
|
859
|
-
throw await de_TrackingOptionsAlreadyExistsExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody: parsedBody.Error,
|
|
865
|
-
errorCode,
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
760
|
export const de_CreateCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
870
761
|
if (output.statusCode >= 300) {
|
|
871
|
-
return
|
|
762
|
+
return de_CommandError(output, context);
|
|
872
763
|
}
|
|
873
764
|
await collectBody(output.body, context);
|
|
874
765
|
const response = {
|
|
@@ -876,37 +767,9 @@ export const de_CreateCustomVerificationEmailTemplateCommand = async (output, co
|
|
|
876
767
|
};
|
|
877
768
|
return response;
|
|
878
769
|
};
|
|
879
|
-
const de_CreateCustomVerificationEmailTemplateCommandError = async (output, context) => {
|
|
880
|
-
const parsedOutput = {
|
|
881
|
-
...output,
|
|
882
|
-
body: await parseErrorBody(output.body, context),
|
|
883
|
-
};
|
|
884
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
885
|
-
switch (errorCode) {
|
|
886
|
-
case "CustomVerificationEmailInvalidContent":
|
|
887
|
-
case "com.amazonaws.ses#CustomVerificationEmailInvalidContentException":
|
|
888
|
-
throw await de_CustomVerificationEmailInvalidContentExceptionRes(parsedOutput, context);
|
|
889
|
-
case "CustomVerificationEmailTemplateAlreadyExists":
|
|
890
|
-
case "com.amazonaws.ses#CustomVerificationEmailTemplateAlreadyExistsException":
|
|
891
|
-
throw await de_CustomVerificationEmailTemplateAlreadyExistsExceptionRes(parsedOutput, context);
|
|
892
|
-
case "FromEmailAddressNotVerified":
|
|
893
|
-
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException":
|
|
894
|
-
throw await de_FromEmailAddressNotVerifiedExceptionRes(parsedOutput, context);
|
|
895
|
-
case "LimitExceeded":
|
|
896
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
897
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
898
|
-
default:
|
|
899
|
-
const parsedBody = parsedOutput.body;
|
|
900
|
-
return throwDefaultError({
|
|
901
|
-
output,
|
|
902
|
-
parsedBody: parsedBody.Error,
|
|
903
|
-
errorCode,
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
};
|
|
907
770
|
export const de_CreateReceiptFilterCommand = async (output, context) => {
|
|
908
771
|
if (output.statusCode >= 300) {
|
|
909
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
910
773
|
}
|
|
911
774
|
const data = await parseBody(output.body, context);
|
|
912
775
|
let contents = {};
|
|
@@ -917,31 +780,9 @@ export const de_CreateReceiptFilterCommand = async (output, context) => {
|
|
|
917
780
|
};
|
|
918
781
|
return response;
|
|
919
782
|
};
|
|
920
|
-
const de_CreateReceiptFilterCommandError = async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context),
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "AlreadyExists":
|
|
928
|
-
case "com.amazonaws.ses#AlreadyExistsException":
|
|
929
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
930
|
-
case "LimitExceeded":
|
|
931
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
932
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
933
|
-
default:
|
|
934
|
-
const parsedBody = parsedOutput.body;
|
|
935
|
-
return throwDefaultError({
|
|
936
|
-
output,
|
|
937
|
-
parsedBody: parsedBody.Error,
|
|
938
|
-
errorCode,
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
783
|
export const de_CreateReceiptRuleCommand = async (output, context) => {
|
|
943
784
|
if (output.statusCode >= 300) {
|
|
944
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
945
786
|
}
|
|
946
787
|
const data = await parseBody(output.body, context);
|
|
947
788
|
let contents = {};
|
|
@@ -952,46 +793,9 @@ export const de_CreateReceiptRuleCommand = async (output, context) => {
|
|
|
952
793
|
};
|
|
953
794
|
return response;
|
|
954
795
|
};
|
|
955
|
-
const de_CreateReceiptRuleCommandError = async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context),
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "AlreadyExists":
|
|
963
|
-
case "com.amazonaws.ses#AlreadyExistsException":
|
|
964
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
965
|
-
case "InvalidLambdaFunction":
|
|
966
|
-
case "com.amazonaws.ses#InvalidLambdaFunctionException":
|
|
967
|
-
throw await de_InvalidLambdaFunctionExceptionRes(parsedOutput, context);
|
|
968
|
-
case "InvalidS3Configuration":
|
|
969
|
-
case "com.amazonaws.ses#InvalidS3ConfigurationException":
|
|
970
|
-
throw await de_InvalidS3ConfigurationExceptionRes(parsedOutput, context);
|
|
971
|
-
case "InvalidSnsTopic":
|
|
972
|
-
case "com.amazonaws.ses#InvalidSnsTopicException":
|
|
973
|
-
throw await de_InvalidSnsTopicExceptionRes(parsedOutput, context);
|
|
974
|
-
case "LimitExceeded":
|
|
975
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
976
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
977
|
-
case "RuleDoesNotExist":
|
|
978
|
-
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
979
|
-
throw await de_RuleDoesNotExistExceptionRes(parsedOutput, context);
|
|
980
|
-
case "RuleSetDoesNotExist":
|
|
981
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
982
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
983
|
-
default:
|
|
984
|
-
const parsedBody = parsedOutput.body;
|
|
985
|
-
return throwDefaultError({
|
|
986
|
-
output,
|
|
987
|
-
parsedBody: parsedBody.Error,
|
|
988
|
-
errorCode,
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
};
|
|
992
796
|
export const de_CreateReceiptRuleSetCommand = async (output, context) => {
|
|
993
797
|
if (output.statusCode >= 300) {
|
|
994
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
995
799
|
}
|
|
996
800
|
const data = await parseBody(output.body, context);
|
|
997
801
|
let contents = {};
|
|
@@ -1002,31 +806,9 @@ export const de_CreateReceiptRuleSetCommand = async (output, context) => {
|
|
|
1002
806
|
};
|
|
1003
807
|
return response;
|
|
1004
808
|
};
|
|
1005
|
-
const de_CreateReceiptRuleSetCommandError = async (output, context) => {
|
|
1006
|
-
const parsedOutput = {
|
|
1007
|
-
...output,
|
|
1008
|
-
body: await parseErrorBody(output.body, context),
|
|
1009
|
-
};
|
|
1010
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1011
|
-
switch (errorCode) {
|
|
1012
|
-
case "AlreadyExists":
|
|
1013
|
-
case "com.amazonaws.ses#AlreadyExistsException":
|
|
1014
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "LimitExceeded":
|
|
1016
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
1017
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1018
|
-
default:
|
|
1019
|
-
const parsedBody = parsedOutput.body;
|
|
1020
|
-
return throwDefaultError({
|
|
1021
|
-
output,
|
|
1022
|
-
parsedBody: parsedBody.Error,
|
|
1023
|
-
errorCode,
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
809
|
export const de_CreateTemplateCommand = async (output, context) => {
|
|
1028
810
|
if (output.statusCode >= 300) {
|
|
1029
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
1030
812
|
}
|
|
1031
813
|
const data = await parseBody(output.body, context);
|
|
1032
814
|
let contents = {};
|
|
@@ -1037,34 +819,9 @@ export const de_CreateTemplateCommand = async (output, context) => {
|
|
|
1037
819
|
};
|
|
1038
820
|
return response;
|
|
1039
821
|
};
|
|
1040
|
-
const de_CreateTemplateCommandError = async (output, context) => {
|
|
1041
|
-
const parsedOutput = {
|
|
1042
|
-
...output,
|
|
1043
|
-
body: await parseErrorBody(output.body, context),
|
|
1044
|
-
};
|
|
1045
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1046
|
-
switch (errorCode) {
|
|
1047
|
-
case "AlreadyExists":
|
|
1048
|
-
case "com.amazonaws.ses#AlreadyExistsException":
|
|
1049
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InvalidTemplate":
|
|
1051
|
-
case "com.amazonaws.ses#InvalidTemplateException":
|
|
1052
|
-
throw await de_InvalidTemplateExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "LimitExceeded":
|
|
1054
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
1055
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1056
|
-
default:
|
|
1057
|
-
const parsedBody = parsedOutput.body;
|
|
1058
|
-
return throwDefaultError({
|
|
1059
|
-
output,
|
|
1060
|
-
parsedBody: parsedBody.Error,
|
|
1061
|
-
errorCode,
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
};
|
|
1065
822
|
export const de_DeleteConfigurationSetCommand = async (output, context) => {
|
|
1066
823
|
if (output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
1068
825
|
}
|
|
1069
826
|
const data = await parseBody(output.body, context);
|
|
1070
827
|
let contents = {};
|
|
@@ -1075,28 +832,9 @@ export const de_DeleteConfigurationSetCommand = async (output, context) => {
|
|
|
1075
832
|
};
|
|
1076
833
|
return response;
|
|
1077
834
|
};
|
|
1078
|
-
const de_DeleteConfigurationSetCommandError = async (output, context) => {
|
|
1079
|
-
const parsedOutput = {
|
|
1080
|
-
...output,
|
|
1081
|
-
body: await parseErrorBody(output.body, context),
|
|
1082
|
-
};
|
|
1083
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1084
|
-
switch (errorCode) {
|
|
1085
|
-
case "ConfigurationSetDoesNotExist":
|
|
1086
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1087
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
return throwDefaultError({
|
|
1091
|
-
output,
|
|
1092
|
-
parsedBody: parsedBody.Error,
|
|
1093
|
-
errorCode,
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
835
|
export const de_DeleteConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
1098
836
|
if (output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1100
838
|
}
|
|
1101
839
|
const data = await parseBody(output.body, context);
|
|
1102
840
|
let contents = {};
|
|
@@ -1107,31 +845,9 @@ export const de_DeleteConfigurationSetEventDestinationCommand = async (output, c
|
|
|
1107
845
|
};
|
|
1108
846
|
return response;
|
|
1109
847
|
};
|
|
1110
|
-
const de_DeleteConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
1111
|
-
const parsedOutput = {
|
|
1112
|
-
...output,
|
|
1113
|
-
body: await parseErrorBody(output.body, context),
|
|
1114
|
-
};
|
|
1115
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1116
|
-
switch (errorCode) {
|
|
1117
|
-
case "ConfigurationSetDoesNotExist":
|
|
1118
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1119
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "EventDestinationDoesNotExist":
|
|
1121
|
-
case "com.amazonaws.ses#EventDestinationDoesNotExistException":
|
|
1122
|
-
throw await de_EventDestinationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody: parsedBody.Error,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
848
|
export const de_DeleteConfigurationSetTrackingOptionsCommand = async (output, context) => {
|
|
1133
849
|
if (output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
1135
851
|
}
|
|
1136
852
|
const data = await parseBody(output.body, context);
|
|
1137
853
|
let contents = {};
|
|
@@ -1142,31 +858,9 @@ export const de_DeleteConfigurationSetTrackingOptionsCommand = async (output, co
|
|
|
1142
858
|
};
|
|
1143
859
|
return response;
|
|
1144
860
|
};
|
|
1145
|
-
const de_DeleteConfigurationSetTrackingOptionsCommandError = async (output, context) => {
|
|
1146
|
-
const parsedOutput = {
|
|
1147
|
-
...output,
|
|
1148
|
-
body: await parseErrorBody(output.body, context),
|
|
1149
|
-
};
|
|
1150
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1151
|
-
switch (errorCode) {
|
|
1152
|
-
case "ConfigurationSetDoesNotExist":
|
|
1153
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1154
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "TrackingOptionsDoesNotExistException":
|
|
1156
|
-
case "com.amazonaws.ses#TrackingOptionsDoesNotExistException":
|
|
1157
|
-
throw await de_TrackingOptionsDoesNotExistExceptionRes(parsedOutput, context);
|
|
1158
|
-
default:
|
|
1159
|
-
const parsedBody = parsedOutput.body;
|
|
1160
|
-
return throwDefaultError({
|
|
1161
|
-
output,
|
|
1162
|
-
parsedBody: parsedBody.Error,
|
|
1163
|
-
errorCode,
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
};
|
|
1167
861
|
export const de_DeleteCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
1168
862
|
if (output.statusCode >= 300) {
|
|
1169
|
-
return
|
|
863
|
+
return de_CommandError(output, context);
|
|
1170
864
|
}
|
|
1171
865
|
await collectBody(output.body, context);
|
|
1172
866
|
const response = {
|
|
@@ -1174,22 +868,9 @@ export const de_DeleteCustomVerificationEmailTemplateCommand = async (output, co
|
|
|
1174
868
|
};
|
|
1175
869
|
return response;
|
|
1176
870
|
};
|
|
1177
|
-
const de_DeleteCustomVerificationEmailTemplateCommandError = async (output, context) => {
|
|
1178
|
-
const parsedOutput = {
|
|
1179
|
-
...output,
|
|
1180
|
-
body: await parseErrorBody(output.body, context),
|
|
1181
|
-
};
|
|
1182
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1183
|
-
const parsedBody = parsedOutput.body;
|
|
1184
|
-
return throwDefaultError({
|
|
1185
|
-
output,
|
|
1186
|
-
parsedBody: parsedBody.Error,
|
|
1187
|
-
errorCode,
|
|
1188
|
-
});
|
|
1189
|
-
};
|
|
1190
871
|
export const de_DeleteIdentityCommand = async (output, context) => {
|
|
1191
872
|
if (output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
1193
874
|
}
|
|
1194
875
|
const data = await parseBody(output.body, context);
|
|
1195
876
|
let contents = {};
|
|
@@ -1200,22 +881,9 @@ export const de_DeleteIdentityCommand = async (output, context) => {
|
|
|
1200
881
|
};
|
|
1201
882
|
return response;
|
|
1202
883
|
};
|
|
1203
|
-
const de_DeleteIdentityCommandError = async (output, context) => {
|
|
1204
|
-
const parsedOutput = {
|
|
1205
|
-
...output,
|
|
1206
|
-
body: await parseErrorBody(output.body, context),
|
|
1207
|
-
};
|
|
1208
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1209
|
-
const parsedBody = parsedOutput.body;
|
|
1210
|
-
return throwDefaultError({
|
|
1211
|
-
output,
|
|
1212
|
-
parsedBody: parsedBody.Error,
|
|
1213
|
-
errorCode,
|
|
1214
|
-
});
|
|
1215
|
-
};
|
|
1216
884
|
export const de_DeleteIdentityPolicyCommand = async (output, context) => {
|
|
1217
885
|
if (output.statusCode >= 300) {
|
|
1218
|
-
return
|
|
886
|
+
return de_CommandError(output, context);
|
|
1219
887
|
}
|
|
1220
888
|
const data = await parseBody(output.body, context);
|
|
1221
889
|
let contents = {};
|
|
@@ -1226,22 +894,9 @@ export const de_DeleteIdentityPolicyCommand = async (output, context) => {
|
|
|
1226
894
|
};
|
|
1227
895
|
return response;
|
|
1228
896
|
};
|
|
1229
|
-
const de_DeleteIdentityPolicyCommandError = async (output, context) => {
|
|
1230
|
-
const parsedOutput = {
|
|
1231
|
-
...output,
|
|
1232
|
-
body: await parseErrorBody(output.body, context),
|
|
1233
|
-
};
|
|
1234
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1235
|
-
const parsedBody = parsedOutput.body;
|
|
1236
|
-
return throwDefaultError({
|
|
1237
|
-
output,
|
|
1238
|
-
parsedBody: parsedBody.Error,
|
|
1239
|
-
errorCode,
|
|
1240
|
-
});
|
|
1241
|
-
};
|
|
1242
897
|
export const de_DeleteReceiptFilterCommand = async (output, context) => {
|
|
1243
898
|
if (output.statusCode >= 300) {
|
|
1244
|
-
return
|
|
899
|
+
return de_CommandError(output, context);
|
|
1245
900
|
}
|
|
1246
901
|
const data = await parseBody(output.body, context);
|
|
1247
902
|
let contents = {};
|
|
@@ -1252,22 +907,9 @@ export const de_DeleteReceiptFilterCommand = async (output, context) => {
|
|
|
1252
907
|
};
|
|
1253
908
|
return response;
|
|
1254
909
|
};
|
|
1255
|
-
const de_DeleteReceiptFilterCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context),
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1261
|
-
const parsedBody = parsedOutput.body;
|
|
1262
|
-
return throwDefaultError({
|
|
1263
|
-
output,
|
|
1264
|
-
parsedBody: parsedBody.Error,
|
|
1265
|
-
errorCode,
|
|
1266
|
-
});
|
|
1267
|
-
};
|
|
1268
910
|
export const de_DeleteReceiptRuleCommand = async (output, context) => {
|
|
1269
911
|
if (output.statusCode >= 300) {
|
|
1270
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1271
913
|
}
|
|
1272
914
|
const data = await parseBody(output.body, context);
|
|
1273
915
|
let contents = {};
|
|
@@ -1278,28 +920,9 @@ export const de_DeleteReceiptRuleCommand = async (output, context) => {
|
|
|
1278
920
|
};
|
|
1279
921
|
return response;
|
|
1280
922
|
};
|
|
1281
|
-
const de_DeleteReceiptRuleCommandError = async (output, context) => {
|
|
1282
|
-
const parsedOutput = {
|
|
1283
|
-
...output,
|
|
1284
|
-
body: await parseErrorBody(output.body, context),
|
|
1285
|
-
};
|
|
1286
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1287
|
-
switch (errorCode) {
|
|
1288
|
-
case "RuleSetDoesNotExist":
|
|
1289
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1290
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
return throwDefaultError({
|
|
1294
|
-
output,
|
|
1295
|
-
parsedBody: parsedBody.Error,
|
|
1296
|
-
errorCode,
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
};
|
|
1300
923
|
export const de_DeleteReceiptRuleSetCommand = async (output, context) => {
|
|
1301
924
|
if (output.statusCode >= 300) {
|
|
1302
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1303
926
|
}
|
|
1304
927
|
const data = await parseBody(output.body, context);
|
|
1305
928
|
let contents = {};
|
|
@@ -1310,28 +933,9 @@ export const de_DeleteReceiptRuleSetCommand = async (output, context) => {
|
|
|
1310
933
|
};
|
|
1311
934
|
return response;
|
|
1312
935
|
};
|
|
1313
|
-
const de_DeleteReceiptRuleSetCommandError = async (output, context) => {
|
|
1314
|
-
const parsedOutput = {
|
|
1315
|
-
...output,
|
|
1316
|
-
body: await parseErrorBody(output.body, context),
|
|
1317
|
-
};
|
|
1318
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1319
|
-
switch (errorCode) {
|
|
1320
|
-
case "CannotDelete":
|
|
1321
|
-
case "com.amazonaws.ses#CannotDeleteException":
|
|
1322
|
-
throw await de_CannotDeleteExceptionRes(parsedOutput, context);
|
|
1323
|
-
default:
|
|
1324
|
-
const parsedBody = parsedOutput.body;
|
|
1325
|
-
return throwDefaultError({
|
|
1326
|
-
output,
|
|
1327
|
-
parsedBody: parsedBody.Error,
|
|
1328
|
-
errorCode,
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
};
|
|
1332
936
|
export const de_DeleteTemplateCommand = async (output, context) => {
|
|
1333
937
|
if (output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
938
|
+
return de_CommandError(output, context);
|
|
1335
939
|
}
|
|
1336
940
|
const data = await parseBody(output.body, context);
|
|
1337
941
|
let contents = {};
|
|
@@ -1342,22 +946,9 @@ export const de_DeleteTemplateCommand = async (output, context) => {
|
|
|
1342
946
|
};
|
|
1343
947
|
return response;
|
|
1344
948
|
};
|
|
1345
|
-
const de_DeleteTemplateCommandError = async (output, context) => {
|
|
1346
|
-
const parsedOutput = {
|
|
1347
|
-
...output,
|
|
1348
|
-
body: await parseErrorBody(output.body, context),
|
|
1349
|
-
};
|
|
1350
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1351
|
-
const parsedBody = parsedOutput.body;
|
|
1352
|
-
return throwDefaultError({
|
|
1353
|
-
output,
|
|
1354
|
-
parsedBody: parsedBody.Error,
|
|
1355
|
-
errorCode,
|
|
1356
|
-
});
|
|
1357
|
-
};
|
|
1358
949
|
export const de_DeleteVerifiedEmailAddressCommand = async (output, context) => {
|
|
1359
950
|
if (output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1361
952
|
}
|
|
1362
953
|
await collectBody(output.body, context);
|
|
1363
954
|
const response = {
|
|
@@ -1365,22 +956,9 @@ export const de_DeleteVerifiedEmailAddressCommand = async (output, context) => {
|
|
|
1365
956
|
};
|
|
1366
957
|
return response;
|
|
1367
958
|
};
|
|
1368
|
-
const de_DeleteVerifiedEmailAddressCommandError = async (output, context) => {
|
|
1369
|
-
const parsedOutput = {
|
|
1370
|
-
...output,
|
|
1371
|
-
body: await parseErrorBody(output.body, context),
|
|
1372
|
-
};
|
|
1373
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1374
|
-
const parsedBody = parsedOutput.body;
|
|
1375
|
-
return throwDefaultError({
|
|
1376
|
-
output,
|
|
1377
|
-
parsedBody: parsedBody.Error,
|
|
1378
|
-
errorCode,
|
|
1379
|
-
});
|
|
1380
|
-
};
|
|
1381
959
|
export const de_DescribeActiveReceiptRuleSetCommand = async (output, context) => {
|
|
1382
960
|
if (output.statusCode >= 300) {
|
|
1383
|
-
return
|
|
961
|
+
return de_CommandError(output, context);
|
|
1384
962
|
}
|
|
1385
963
|
const data = await parseBody(output.body, context);
|
|
1386
964
|
let contents = {};
|
|
@@ -1391,22 +969,9 @@ export const de_DescribeActiveReceiptRuleSetCommand = async (output, context) =>
|
|
|
1391
969
|
};
|
|
1392
970
|
return response;
|
|
1393
971
|
};
|
|
1394
|
-
const de_DescribeActiveReceiptRuleSetCommandError = async (output, context) => {
|
|
1395
|
-
const parsedOutput = {
|
|
1396
|
-
...output,
|
|
1397
|
-
body: await parseErrorBody(output.body, context),
|
|
1398
|
-
};
|
|
1399
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1400
|
-
const parsedBody = parsedOutput.body;
|
|
1401
|
-
return throwDefaultError({
|
|
1402
|
-
output,
|
|
1403
|
-
parsedBody: parsedBody.Error,
|
|
1404
|
-
errorCode,
|
|
1405
|
-
});
|
|
1406
|
-
};
|
|
1407
972
|
export const de_DescribeConfigurationSetCommand = async (output, context) => {
|
|
1408
973
|
if (output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
974
|
+
return de_CommandError(output, context);
|
|
1410
975
|
}
|
|
1411
976
|
const data = await parseBody(output.body, context);
|
|
1412
977
|
let contents = {};
|
|
@@ -1417,28 +982,9 @@ export const de_DescribeConfigurationSetCommand = async (output, context) => {
|
|
|
1417
982
|
};
|
|
1418
983
|
return response;
|
|
1419
984
|
};
|
|
1420
|
-
const de_DescribeConfigurationSetCommandError = async (output, context) => {
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "ConfigurationSetDoesNotExist":
|
|
1428
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1429
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody: parsedBody.Error,
|
|
1435
|
-
errorCode,
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
};
|
|
1439
985
|
export const de_DescribeReceiptRuleCommand = async (output, context) => {
|
|
1440
986
|
if (output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
987
|
+
return de_CommandError(output, context);
|
|
1442
988
|
}
|
|
1443
989
|
const data = await parseBody(output.body, context);
|
|
1444
990
|
let contents = {};
|
|
@@ -1449,31 +995,9 @@ export const de_DescribeReceiptRuleCommand = async (output, context) => {
|
|
|
1449
995
|
};
|
|
1450
996
|
return response;
|
|
1451
997
|
};
|
|
1452
|
-
const de_DescribeReceiptRuleCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "RuleDoesNotExist":
|
|
1460
|
-
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
1461
|
-
throw await de_RuleDoesNotExistExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "RuleSetDoesNotExist":
|
|
1463
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1464
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1465
|
-
default:
|
|
1466
|
-
const parsedBody = parsedOutput.body;
|
|
1467
|
-
return throwDefaultError({
|
|
1468
|
-
output,
|
|
1469
|
-
parsedBody: parsedBody.Error,
|
|
1470
|
-
errorCode,
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
998
|
export const de_DescribeReceiptRuleSetCommand = async (output, context) => {
|
|
1475
999
|
if (output.statusCode >= 300) {
|
|
1476
|
-
return
|
|
1000
|
+
return de_CommandError(output, context);
|
|
1477
1001
|
}
|
|
1478
1002
|
const data = await parseBody(output.body, context);
|
|
1479
1003
|
let contents = {};
|
|
@@ -1484,28 +1008,9 @@ export const de_DescribeReceiptRuleSetCommand = async (output, context) => {
|
|
|
1484
1008
|
};
|
|
1485
1009
|
return response;
|
|
1486
1010
|
};
|
|
1487
|
-
const de_DescribeReceiptRuleSetCommandError = async (output, context) => {
|
|
1488
|
-
const parsedOutput = {
|
|
1489
|
-
...output,
|
|
1490
|
-
body: await parseErrorBody(output.body, context),
|
|
1491
|
-
};
|
|
1492
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1493
|
-
switch (errorCode) {
|
|
1494
|
-
case "RuleSetDoesNotExist":
|
|
1495
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1496
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1497
|
-
default:
|
|
1498
|
-
const parsedBody = parsedOutput.body;
|
|
1499
|
-
return throwDefaultError({
|
|
1500
|
-
output,
|
|
1501
|
-
parsedBody: parsedBody.Error,
|
|
1502
|
-
errorCode,
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
};
|
|
1506
1011
|
export const de_GetAccountSendingEnabledCommand = async (output, context) => {
|
|
1507
1012
|
if (output.statusCode >= 300) {
|
|
1508
|
-
return
|
|
1013
|
+
return de_CommandError(output, context);
|
|
1509
1014
|
}
|
|
1510
1015
|
const data = await parseBody(output.body, context);
|
|
1511
1016
|
let contents = {};
|
|
@@ -1516,22 +1021,9 @@ export const de_GetAccountSendingEnabledCommand = async (output, context) => {
|
|
|
1516
1021
|
};
|
|
1517
1022
|
return response;
|
|
1518
1023
|
};
|
|
1519
|
-
const de_GetAccountSendingEnabledCommandError = async (output, context) => {
|
|
1520
|
-
const parsedOutput = {
|
|
1521
|
-
...output,
|
|
1522
|
-
body: await parseErrorBody(output.body, context),
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1525
|
-
const parsedBody = parsedOutput.body;
|
|
1526
|
-
return throwDefaultError({
|
|
1527
|
-
output,
|
|
1528
|
-
parsedBody: parsedBody.Error,
|
|
1529
|
-
errorCode,
|
|
1530
|
-
});
|
|
1531
|
-
};
|
|
1532
1024
|
export const de_GetCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
1533
1025
|
if (output.statusCode >= 300) {
|
|
1534
|
-
return
|
|
1026
|
+
return de_CommandError(output, context);
|
|
1535
1027
|
}
|
|
1536
1028
|
const data = await parseBody(output.body, context);
|
|
1537
1029
|
let contents = {};
|
|
@@ -1542,28 +1034,9 @@ export const de_GetCustomVerificationEmailTemplateCommand = async (output, conte
|
|
|
1542
1034
|
};
|
|
1543
1035
|
return response;
|
|
1544
1036
|
};
|
|
1545
|
-
const de_GetCustomVerificationEmailTemplateCommandError = async (output, context) => {
|
|
1546
|
-
const parsedOutput = {
|
|
1547
|
-
...output,
|
|
1548
|
-
body: await parseErrorBody(output.body, context),
|
|
1549
|
-
};
|
|
1550
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1551
|
-
switch (errorCode) {
|
|
1552
|
-
case "CustomVerificationEmailTemplateDoesNotExist":
|
|
1553
|
-
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
1554
|
-
throw await de_CustomVerificationEmailTemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1555
|
-
default:
|
|
1556
|
-
const parsedBody = parsedOutput.body;
|
|
1557
|
-
return throwDefaultError({
|
|
1558
|
-
output,
|
|
1559
|
-
parsedBody: parsedBody.Error,
|
|
1560
|
-
errorCode,
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
};
|
|
1564
1037
|
export const de_GetIdentityDkimAttributesCommand = async (output, context) => {
|
|
1565
1038
|
if (output.statusCode >= 300) {
|
|
1566
|
-
return
|
|
1039
|
+
return de_CommandError(output, context);
|
|
1567
1040
|
}
|
|
1568
1041
|
const data = await parseBody(output.body, context);
|
|
1569
1042
|
let contents = {};
|
|
@@ -1574,22 +1047,9 @@ export const de_GetIdentityDkimAttributesCommand = async (output, context) => {
|
|
|
1574
1047
|
};
|
|
1575
1048
|
return response;
|
|
1576
1049
|
};
|
|
1577
|
-
const de_GetIdentityDkimAttributesCommandError = async (output, context) => {
|
|
1578
|
-
const parsedOutput = {
|
|
1579
|
-
...output,
|
|
1580
|
-
body: await parseErrorBody(output.body, context),
|
|
1581
|
-
};
|
|
1582
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1583
|
-
const parsedBody = parsedOutput.body;
|
|
1584
|
-
return throwDefaultError({
|
|
1585
|
-
output,
|
|
1586
|
-
parsedBody: parsedBody.Error,
|
|
1587
|
-
errorCode,
|
|
1588
|
-
});
|
|
1589
|
-
};
|
|
1590
1050
|
export const de_GetIdentityMailFromDomainAttributesCommand = async (output, context) => {
|
|
1591
1051
|
if (output.statusCode >= 300) {
|
|
1592
|
-
return
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1593
1053
|
}
|
|
1594
1054
|
const data = await parseBody(output.body, context);
|
|
1595
1055
|
let contents = {};
|
|
@@ -1600,22 +1060,9 @@ export const de_GetIdentityMailFromDomainAttributesCommand = async (output, cont
|
|
|
1600
1060
|
};
|
|
1601
1061
|
return response;
|
|
1602
1062
|
};
|
|
1603
|
-
const de_GetIdentityMailFromDomainAttributesCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
return throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody: parsedBody.Error,
|
|
1613
|
-
errorCode,
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
1063
|
export const de_GetIdentityNotificationAttributesCommand = async (output, context) => {
|
|
1617
1064
|
if (output.statusCode >= 300) {
|
|
1618
|
-
return
|
|
1065
|
+
return de_CommandError(output, context);
|
|
1619
1066
|
}
|
|
1620
1067
|
const data = await parseBody(output.body, context);
|
|
1621
1068
|
let contents = {};
|
|
@@ -1626,22 +1073,9 @@ export const de_GetIdentityNotificationAttributesCommand = async (output, contex
|
|
|
1626
1073
|
};
|
|
1627
1074
|
return response;
|
|
1628
1075
|
};
|
|
1629
|
-
const de_GetIdentityNotificationAttributesCommandError = async (output, context) => {
|
|
1630
|
-
const parsedOutput = {
|
|
1631
|
-
...output,
|
|
1632
|
-
body: await parseErrorBody(output.body, context),
|
|
1633
|
-
};
|
|
1634
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1635
|
-
const parsedBody = parsedOutput.body;
|
|
1636
|
-
return throwDefaultError({
|
|
1637
|
-
output,
|
|
1638
|
-
parsedBody: parsedBody.Error,
|
|
1639
|
-
errorCode,
|
|
1640
|
-
});
|
|
1641
|
-
};
|
|
1642
1076
|
export const de_GetIdentityPoliciesCommand = async (output, context) => {
|
|
1643
1077
|
if (output.statusCode >= 300) {
|
|
1644
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1645
1079
|
}
|
|
1646
1080
|
const data = await parseBody(output.body, context);
|
|
1647
1081
|
let contents = {};
|
|
@@ -1652,22 +1086,9 @@ export const de_GetIdentityPoliciesCommand = async (output, context) => {
|
|
|
1652
1086
|
};
|
|
1653
1087
|
return response;
|
|
1654
1088
|
};
|
|
1655
|
-
const de_GetIdentityPoliciesCommandError = async (output, context) => {
|
|
1656
|
-
const parsedOutput = {
|
|
1657
|
-
...output,
|
|
1658
|
-
body: await parseErrorBody(output.body, context),
|
|
1659
|
-
};
|
|
1660
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1661
|
-
const parsedBody = parsedOutput.body;
|
|
1662
|
-
return throwDefaultError({
|
|
1663
|
-
output,
|
|
1664
|
-
parsedBody: parsedBody.Error,
|
|
1665
|
-
errorCode,
|
|
1666
|
-
});
|
|
1667
|
-
};
|
|
1668
1089
|
export const de_GetIdentityVerificationAttributesCommand = async (output, context) => {
|
|
1669
1090
|
if (output.statusCode >= 300) {
|
|
1670
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
1671
1092
|
}
|
|
1672
1093
|
const data = await parseBody(output.body, context);
|
|
1673
1094
|
let contents = {};
|
|
@@ -1678,22 +1099,9 @@ export const de_GetIdentityVerificationAttributesCommand = async (output, contex
|
|
|
1678
1099
|
};
|
|
1679
1100
|
return response;
|
|
1680
1101
|
};
|
|
1681
|
-
const de_GetIdentityVerificationAttributesCommandError = async (output, context) => {
|
|
1682
|
-
const parsedOutput = {
|
|
1683
|
-
...output,
|
|
1684
|
-
body: await parseErrorBody(output.body, context),
|
|
1685
|
-
};
|
|
1686
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1687
|
-
const parsedBody = parsedOutput.body;
|
|
1688
|
-
return throwDefaultError({
|
|
1689
|
-
output,
|
|
1690
|
-
parsedBody: parsedBody.Error,
|
|
1691
|
-
errorCode,
|
|
1692
|
-
});
|
|
1693
|
-
};
|
|
1694
1102
|
export const de_GetSendQuotaCommand = async (output, context) => {
|
|
1695
1103
|
if (output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1697
1105
|
}
|
|
1698
1106
|
const data = await parseBody(output.body, context);
|
|
1699
1107
|
let contents = {};
|
|
@@ -1704,22 +1112,9 @@ export const de_GetSendQuotaCommand = async (output, context) => {
|
|
|
1704
1112
|
};
|
|
1705
1113
|
return response;
|
|
1706
1114
|
};
|
|
1707
|
-
const de_GetSendQuotaCommandError = async (output, context) => {
|
|
1708
|
-
const parsedOutput = {
|
|
1709
|
-
...output,
|
|
1710
|
-
body: await parseErrorBody(output.body, context),
|
|
1711
|
-
};
|
|
1712
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1713
|
-
const parsedBody = parsedOutput.body;
|
|
1714
|
-
return throwDefaultError({
|
|
1715
|
-
output,
|
|
1716
|
-
parsedBody: parsedBody.Error,
|
|
1717
|
-
errorCode,
|
|
1718
|
-
});
|
|
1719
|
-
};
|
|
1720
1115
|
export const de_GetSendStatisticsCommand = async (output, context) => {
|
|
1721
1116
|
if (output.statusCode >= 300) {
|
|
1722
|
-
return
|
|
1117
|
+
return de_CommandError(output, context);
|
|
1723
1118
|
}
|
|
1724
1119
|
const data = await parseBody(output.body, context);
|
|
1725
1120
|
let contents = {};
|
|
@@ -1730,22 +1125,9 @@ export const de_GetSendStatisticsCommand = async (output, context) => {
|
|
|
1730
1125
|
};
|
|
1731
1126
|
return response;
|
|
1732
1127
|
};
|
|
1733
|
-
const de_GetSendStatisticsCommandError = async (output, context) => {
|
|
1734
|
-
const parsedOutput = {
|
|
1735
|
-
...output,
|
|
1736
|
-
body: await parseErrorBody(output.body, context),
|
|
1737
|
-
};
|
|
1738
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1739
|
-
const parsedBody = parsedOutput.body;
|
|
1740
|
-
return throwDefaultError({
|
|
1741
|
-
output,
|
|
1742
|
-
parsedBody: parsedBody.Error,
|
|
1743
|
-
errorCode,
|
|
1744
|
-
});
|
|
1745
|
-
};
|
|
1746
1128
|
export const de_GetTemplateCommand = async (output, context) => {
|
|
1747
1129
|
if (output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
1130
|
+
return de_CommandError(output, context);
|
|
1749
1131
|
}
|
|
1750
1132
|
const data = await parseBody(output.body, context);
|
|
1751
1133
|
let contents = {};
|
|
@@ -1756,28 +1138,9 @@ export const de_GetTemplateCommand = async (output, context) => {
|
|
|
1756
1138
|
};
|
|
1757
1139
|
return response;
|
|
1758
1140
|
};
|
|
1759
|
-
const de_GetTemplateCommandError = async (output, context) => {
|
|
1760
|
-
const parsedOutput = {
|
|
1761
|
-
...output,
|
|
1762
|
-
body: await parseErrorBody(output.body, context),
|
|
1763
|
-
};
|
|
1764
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1765
|
-
switch (errorCode) {
|
|
1766
|
-
case "TemplateDoesNotExist":
|
|
1767
|
-
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
1768
|
-
throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1769
|
-
default:
|
|
1770
|
-
const parsedBody = parsedOutput.body;
|
|
1771
|
-
return throwDefaultError({
|
|
1772
|
-
output,
|
|
1773
|
-
parsedBody: parsedBody.Error,
|
|
1774
|
-
errorCode,
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
};
|
|
1778
1141
|
export const de_ListConfigurationSetsCommand = async (output, context) => {
|
|
1779
1142
|
if (output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
1143
|
+
return de_CommandError(output, context);
|
|
1781
1144
|
}
|
|
1782
1145
|
const data = await parseBody(output.body, context);
|
|
1783
1146
|
let contents = {};
|
|
@@ -1788,22 +1151,9 @@ export const de_ListConfigurationSetsCommand = async (output, context) => {
|
|
|
1788
1151
|
};
|
|
1789
1152
|
return response;
|
|
1790
1153
|
};
|
|
1791
|
-
const de_ListConfigurationSetsCommandError = async (output, context) => {
|
|
1792
|
-
const parsedOutput = {
|
|
1793
|
-
...output,
|
|
1794
|
-
body: await parseErrorBody(output.body, context),
|
|
1795
|
-
};
|
|
1796
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody: parsedBody.Error,
|
|
1801
|
-
errorCode,
|
|
1802
|
-
});
|
|
1803
|
-
};
|
|
1804
1154
|
export const de_ListCustomVerificationEmailTemplatesCommand = async (output, context) => {
|
|
1805
1155
|
if (output.statusCode >= 300) {
|
|
1806
|
-
return
|
|
1156
|
+
return de_CommandError(output, context);
|
|
1807
1157
|
}
|
|
1808
1158
|
const data = await parseBody(output.body, context);
|
|
1809
1159
|
let contents = {};
|
|
@@ -1814,22 +1164,9 @@ export const de_ListCustomVerificationEmailTemplatesCommand = async (output, con
|
|
|
1814
1164
|
};
|
|
1815
1165
|
return response;
|
|
1816
1166
|
};
|
|
1817
|
-
const de_ListCustomVerificationEmailTemplatesCommandError = async (output, context) => {
|
|
1818
|
-
const parsedOutput = {
|
|
1819
|
-
...output,
|
|
1820
|
-
body: await parseErrorBody(output.body, context),
|
|
1821
|
-
};
|
|
1822
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1823
|
-
const parsedBody = parsedOutput.body;
|
|
1824
|
-
return throwDefaultError({
|
|
1825
|
-
output,
|
|
1826
|
-
parsedBody: parsedBody.Error,
|
|
1827
|
-
errorCode,
|
|
1828
|
-
});
|
|
1829
|
-
};
|
|
1830
1167
|
export const de_ListIdentitiesCommand = async (output, context) => {
|
|
1831
1168
|
if (output.statusCode >= 300) {
|
|
1832
|
-
return
|
|
1169
|
+
return de_CommandError(output, context);
|
|
1833
1170
|
}
|
|
1834
1171
|
const data = await parseBody(output.body, context);
|
|
1835
1172
|
let contents = {};
|
|
@@ -1840,22 +1177,9 @@ export const de_ListIdentitiesCommand = async (output, context) => {
|
|
|
1840
1177
|
};
|
|
1841
1178
|
return response;
|
|
1842
1179
|
};
|
|
1843
|
-
const de_ListIdentitiesCommandError = async (output, context) => {
|
|
1844
|
-
const parsedOutput = {
|
|
1845
|
-
...output,
|
|
1846
|
-
body: await parseErrorBody(output.body, context),
|
|
1847
|
-
};
|
|
1848
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1849
|
-
const parsedBody = parsedOutput.body;
|
|
1850
|
-
return throwDefaultError({
|
|
1851
|
-
output,
|
|
1852
|
-
parsedBody: parsedBody.Error,
|
|
1853
|
-
errorCode,
|
|
1854
|
-
});
|
|
1855
|
-
};
|
|
1856
1180
|
export const de_ListIdentityPoliciesCommand = async (output, context) => {
|
|
1857
1181
|
if (output.statusCode >= 300) {
|
|
1858
|
-
return
|
|
1182
|
+
return de_CommandError(output, context);
|
|
1859
1183
|
}
|
|
1860
1184
|
const data = await parseBody(output.body, context);
|
|
1861
1185
|
let contents = {};
|
|
@@ -1866,22 +1190,9 @@ export const de_ListIdentityPoliciesCommand = async (output, context) => {
|
|
|
1866
1190
|
};
|
|
1867
1191
|
return response;
|
|
1868
1192
|
};
|
|
1869
|
-
const de_ListIdentityPoliciesCommandError = async (output, context) => {
|
|
1870
|
-
const parsedOutput = {
|
|
1871
|
-
...output,
|
|
1872
|
-
body: await parseErrorBody(output.body, context),
|
|
1873
|
-
};
|
|
1874
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1875
|
-
const parsedBody = parsedOutput.body;
|
|
1876
|
-
return throwDefaultError({
|
|
1877
|
-
output,
|
|
1878
|
-
parsedBody: parsedBody.Error,
|
|
1879
|
-
errorCode,
|
|
1880
|
-
});
|
|
1881
|
-
};
|
|
1882
1193
|
export const de_ListReceiptFiltersCommand = async (output, context) => {
|
|
1883
1194
|
if (output.statusCode >= 300) {
|
|
1884
|
-
return
|
|
1195
|
+
return de_CommandError(output, context);
|
|
1885
1196
|
}
|
|
1886
1197
|
const data = await parseBody(output.body, context);
|
|
1887
1198
|
let contents = {};
|
|
@@ -1892,22 +1203,9 @@ export const de_ListReceiptFiltersCommand = async (output, context) => {
|
|
|
1892
1203
|
};
|
|
1893
1204
|
return response;
|
|
1894
1205
|
};
|
|
1895
|
-
const de_ListReceiptFiltersCommandError = async (output, context) => {
|
|
1896
|
-
const parsedOutput = {
|
|
1897
|
-
...output,
|
|
1898
|
-
body: await parseErrorBody(output.body, context),
|
|
1899
|
-
};
|
|
1900
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1901
|
-
const parsedBody = parsedOutput.body;
|
|
1902
|
-
return throwDefaultError({
|
|
1903
|
-
output,
|
|
1904
|
-
parsedBody: parsedBody.Error,
|
|
1905
|
-
errorCode,
|
|
1906
|
-
});
|
|
1907
|
-
};
|
|
1908
1206
|
export const de_ListReceiptRuleSetsCommand = async (output, context) => {
|
|
1909
1207
|
if (output.statusCode >= 300) {
|
|
1910
|
-
return
|
|
1208
|
+
return de_CommandError(output, context);
|
|
1911
1209
|
}
|
|
1912
1210
|
const data = await parseBody(output.body, context);
|
|
1913
1211
|
let contents = {};
|
|
@@ -1918,22 +1216,9 @@ export const de_ListReceiptRuleSetsCommand = async (output, context) => {
|
|
|
1918
1216
|
};
|
|
1919
1217
|
return response;
|
|
1920
1218
|
};
|
|
1921
|
-
const de_ListReceiptRuleSetsCommandError = async (output, context) => {
|
|
1922
|
-
const parsedOutput = {
|
|
1923
|
-
...output,
|
|
1924
|
-
body: await parseErrorBody(output.body, context),
|
|
1925
|
-
};
|
|
1926
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1927
|
-
const parsedBody = parsedOutput.body;
|
|
1928
|
-
return throwDefaultError({
|
|
1929
|
-
output,
|
|
1930
|
-
parsedBody: parsedBody.Error,
|
|
1931
|
-
errorCode,
|
|
1932
|
-
});
|
|
1933
|
-
};
|
|
1934
1219
|
export const de_ListTemplatesCommand = async (output, context) => {
|
|
1935
1220
|
if (output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
1221
|
+
return de_CommandError(output, context);
|
|
1937
1222
|
}
|
|
1938
1223
|
const data = await parseBody(output.body, context);
|
|
1939
1224
|
let contents = {};
|
|
@@ -1944,22 +1229,9 @@ export const de_ListTemplatesCommand = async (output, context) => {
|
|
|
1944
1229
|
};
|
|
1945
1230
|
return response;
|
|
1946
1231
|
};
|
|
1947
|
-
const de_ListTemplatesCommandError = async (output, context) => {
|
|
1948
|
-
const parsedOutput = {
|
|
1949
|
-
...output,
|
|
1950
|
-
body: await parseErrorBody(output.body, context),
|
|
1951
|
-
};
|
|
1952
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1953
|
-
const parsedBody = parsedOutput.body;
|
|
1954
|
-
return throwDefaultError({
|
|
1955
|
-
output,
|
|
1956
|
-
parsedBody: parsedBody.Error,
|
|
1957
|
-
errorCode,
|
|
1958
|
-
});
|
|
1959
|
-
};
|
|
1960
1232
|
export const de_ListVerifiedEmailAddressesCommand = async (output, context) => {
|
|
1961
1233
|
if (output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
1234
|
+
return de_CommandError(output, context);
|
|
1963
1235
|
}
|
|
1964
1236
|
const data = await parseBody(output.body, context);
|
|
1965
1237
|
let contents = {};
|
|
@@ -1970,22 +1242,9 @@ export const de_ListVerifiedEmailAddressesCommand = async (output, context) => {
|
|
|
1970
1242
|
};
|
|
1971
1243
|
return response;
|
|
1972
1244
|
};
|
|
1973
|
-
const de_ListVerifiedEmailAddressesCommandError = async (output, context) => {
|
|
1974
|
-
const parsedOutput = {
|
|
1975
|
-
...output,
|
|
1976
|
-
body: await parseErrorBody(output.body, context),
|
|
1977
|
-
};
|
|
1978
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1979
|
-
const parsedBody = parsedOutput.body;
|
|
1980
|
-
return throwDefaultError({
|
|
1981
|
-
output,
|
|
1982
|
-
parsedBody: parsedBody.Error,
|
|
1983
|
-
errorCode,
|
|
1984
|
-
});
|
|
1985
|
-
};
|
|
1986
1245
|
export const de_PutConfigurationSetDeliveryOptionsCommand = async (output, context) => {
|
|
1987
1246
|
if (output.statusCode >= 300) {
|
|
1988
|
-
return
|
|
1247
|
+
return de_CommandError(output, context);
|
|
1989
1248
|
}
|
|
1990
1249
|
const data = await parseBody(output.body, context);
|
|
1991
1250
|
let contents = {};
|
|
@@ -1996,31 +1255,9 @@ export const de_PutConfigurationSetDeliveryOptionsCommand = async (output, conte
|
|
|
1996
1255
|
};
|
|
1997
1256
|
return response;
|
|
1998
1257
|
};
|
|
1999
|
-
const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context) => {
|
|
2000
|
-
const parsedOutput = {
|
|
2001
|
-
...output,
|
|
2002
|
-
body: await parseErrorBody(output.body, context),
|
|
2003
|
-
};
|
|
2004
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2005
|
-
switch (errorCode) {
|
|
2006
|
-
case "ConfigurationSetDoesNotExist":
|
|
2007
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2008
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "InvalidDeliveryOptions":
|
|
2010
|
-
case "com.amazonaws.ses#InvalidDeliveryOptionsException":
|
|
2011
|
-
throw await de_InvalidDeliveryOptionsExceptionRes(parsedOutput, context);
|
|
2012
|
-
default:
|
|
2013
|
-
const parsedBody = parsedOutput.body;
|
|
2014
|
-
return throwDefaultError({
|
|
2015
|
-
output,
|
|
2016
|
-
parsedBody: parsedBody.Error,
|
|
2017
|
-
errorCode,
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
};
|
|
2021
1258
|
export const de_PutIdentityPolicyCommand = async (output, context) => {
|
|
2022
1259
|
if (output.statusCode >= 300) {
|
|
2023
|
-
return
|
|
1260
|
+
return de_CommandError(output, context);
|
|
2024
1261
|
}
|
|
2025
1262
|
const data = await parseBody(output.body, context);
|
|
2026
1263
|
let contents = {};
|
|
@@ -2031,28 +1268,9 @@ export const de_PutIdentityPolicyCommand = async (output, context) => {
|
|
|
2031
1268
|
};
|
|
2032
1269
|
return response;
|
|
2033
1270
|
};
|
|
2034
|
-
const de_PutIdentityPolicyCommandError = async (output, context) => {
|
|
2035
|
-
const parsedOutput = {
|
|
2036
|
-
...output,
|
|
2037
|
-
body: await parseErrorBody(output.body, context),
|
|
2038
|
-
};
|
|
2039
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2040
|
-
switch (errorCode) {
|
|
2041
|
-
case "InvalidPolicy":
|
|
2042
|
-
case "com.amazonaws.ses#InvalidPolicyException":
|
|
2043
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
2044
|
-
default:
|
|
2045
|
-
const parsedBody = parsedOutput.body;
|
|
2046
|
-
return throwDefaultError({
|
|
2047
|
-
output,
|
|
2048
|
-
parsedBody: parsedBody.Error,
|
|
2049
|
-
errorCode,
|
|
2050
|
-
});
|
|
2051
|
-
}
|
|
2052
|
-
};
|
|
2053
1271
|
export const de_ReorderReceiptRuleSetCommand = async (output, context) => {
|
|
2054
1272
|
if (output.statusCode >= 300) {
|
|
2055
|
-
return
|
|
1273
|
+
return de_CommandError(output, context);
|
|
2056
1274
|
}
|
|
2057
1275
|
const data = await parseBody(output.body, context);
|
|
2058
1276
|
let contents = {};
|
|
@@ -2063,31 +1281,9 @@ export const de_ReorderReceiptRuleSetCommand = async (output, context) => {
|
|
|
2063
1281
|
};
|
|
2064
1282
|
return response;
|
|
2065
1283
|
};
|
|
2066
|
-
const de_ReorderReceiptRuleSetCommandError = async (output, context) => {
|
|
2067
|
-
const parsedOutput = {
|
|
2068
|
-
...output,
|
|
2069
|
-
body: await parseErrorBody(output.body, context),
|
|
2070
|
-
};
|
|
2071
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2072
|
-
switch (errorCode) {
|
|
2073
|
-
case "RuleDoesNotExist":
|
|
2074
|
-
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
2075
|
-
throw await de_RuleDoesNotExistExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "RuleSetDoesNotExist":
|
|
2077
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
2078
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2079
|
-
default:
|
|
2080
|
-
const parsedBody = parsedOutput.body;
|
|
2081
|
-
return throwDefaultError({
|
|
2082
|
-
output,
|
|
2083
|
-
parsedBody: parsedBody.Error,
|
|
2084
|
-
errorCode,
|
|
2085
|
-
});
|
|
2086
|
-
}
|
|
2087
|
-
};
|
|
2088
1284
|
export const de_SendBounceCommand = async (output, context) => {
|
|
2089
1285
|
if (output.statusCode >= 300) {
|
|
2090
|
-
return
|
|
1286
|
+
return de_CommandError(output, context);
|
|
2091
1287
|
}
|
|
2092
1288
|
const data = await parseBody(output.body, context);
|
|
2093
1289
|
let contents = {};
|
|
@@ -2098,28 +1294,9 @@ export const de_SendBounceCommand = async (output, context) => {
|
|
|
2098
1294
|
};
|
|
2099
1295
|
return response;
|
|
2100
1296
|
};
|
|
2101
|
-
const de_SendBounceCommandError = async (output, context) => {
|
|
2102
|
-
const parsedOutput = {
|
|
2103
|
-
...output,
|
|
2104
|
-
body: await parseErrorBody(output.body, context),
|
|
2105
|
-
};
|
|
2106
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2107
|
-
switch (errorCode) {
|
|
2108
|
-
case "MessageRejected":
|
|
2109
|
-
case "com.amazonaws.ses#MessageRejected":
|
|
2110
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2111
|
-
default:
|
|
2112
|
-
const parsedBody = parsedOutput.body;
|
|
2113
|
-
return throwDefaultError({
|
|
2114
|
-
output,
|
|
2115
|
-
parsedBody: parsedBody.Error,
|
|
2116
|
-
errorCode,
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
|
-
};
|
|
2120
1297
|
export const de_SendBulkTemplatedEmailCommand = async (output, context) => {
|
|
2121
1298
|
if (output.statusCode >= 300) {
|
|
2122
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
2123
1300
|
}
|
|
2124
1301
|
const data = await parseBody(output.body, context);
|
|
2125
1302
|
let contents = {};
|
|
@@ -2130,43 +1307,9 @@ export const de_SendBulkTemplatedEmailCommand = async (output, context) => {
|
|
|
2130
1307
|
};
|
|
2131
1308
|
return response;
|
|
2132
1309
|
};
|
|
2133
|
-
const de_SendBulkTemplatedEmailCommandError = async (output, context) => {
|
|
2134
|
-
const parsedOutput = {
|
|
2135
|
-
...output,
|
|
2136
|
-
body: await parseErrorBody(output.body, context),
|
|
2137
|
-
};
|
|
2138
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2139
|
-
switch (errorCode) {
|
|
2140
|
-
case "AccountSendingPausedException":
|
|
2141
|
-
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
2142
|
-
throw await de_AccountSendingPausedExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ConfigurationSetDoesNotExist":
|
|
2144
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2145
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ConfigurationSetSendingPausedException":
|
|
2147
|
-
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
2148
|
-
throw await de_ConfigurationSetSendingPausedExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "MailFromDomainNotVerifiedException":
|
|
2150
|
-
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
2151
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "MessageRejected":
|
|
2153
|
-
case "com.amazonaws.ses#MessageRejected":
|
|
2154
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2155
|
-
case "TemplateDoesNotExist":
|
|
2156
|
-
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
2157
|
-
throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2158
|
-
default:
|
|
2159
|
-
const parsedBody = parsedOutput.body;
|
|
2160
|
-
return throwDefaultError({
|
|
2161
|
-
output,
|
|
2162
|
-
parsedBody: parsedBody.Error,
|
|
2163
|
-
errorCode,
|
|
2164
|
-
});
|
|
2165
|
-
}
|
|
2166
|
-
};
|
|
2167
1310
|
export const de_SendCustomVerificationEmailCommand = async (output, context) => {
|
|
2168
1311
|
if (output.statusCode >= 300) {
|
|
2169
|
-
return
|
|
1312
|
+
return de_CommandError(output, context);
|
|
2170
1313
|
}
|
|
2171
1314
|
const data = await parseBody(output.body, context);
|
|
2172
1315
|
let contents = {};
|
|
@@ -2177,40 +1320,9 @@ export const de_SendCustomVerificationEmailCommand = async (output, context) =>
|
|
|
2177
1320
|
};
|
|
2178
1321
|
return response;
|
|
2179
1322
|
};
|
|
2180
|
-
const de_SendCustomVerificationEmailCommandError = async (output, context) => {
|
|
2181
|
-
const parsedOutput = {
|
|
2182
|
-
...output,
|
|
2183
|
-
body: await parseErrorBody(output.body, context),
|
|
2184
|
-
};
|
|
2185
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2186
|
-
switch (errorCode) {
|
|
2187
|
-
case "ConfigurationSetDoesNotExist":
|
|
2188
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2189
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "CustomVerificationEmailTemplateDoesNotExist":
|
|
2191
|
-
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
2192
|
-
throw await de_CustomVerificationEmailTemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "FromEmailAddressNotVerified":
|
|
2194
|
-
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException":
|
|
2195
|
-
throw await de_FromEmailAddressNotVerifiedExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "MessageRejected":
|
|
2197
|
-
case "com.amazonaws.ses#MessageRejected":
|
|
2198
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2199
|
-
case "ProductionAccessNotGranted":
|
|
2200
|
-
case "com.amazonaws.ses#ProductionAccessNotGrantedException":
|
|
2201
|
-
throw await de_ProductionAccessNotGrantedExceptionRes(parsedOutput, context);
|
|
2202
|
-
default:
|
|
2203
|
-
const parsedBody = parsedOutput.body;
|
|
2204
|
-
return throwDefaultError({
|
|
2205
|
-
output,
|
|
2206
|
-
parsedBody: parsedBody.Error,
|
|
2207
|
-
errorCode,
|
|
2208
|
-
});
|
|
2209
|
-
}
|
|
2210
|
-
};
|
|
2211
1323
|
export const de_SendEmailCommand = async (output, context) => {
|
|
2212
1324
|
if (output.statusCode >= 300) {
|
|
2213
|
-
return
|
|
1325
|
+
return de_CommandError(output, context);
|
|
2214
1326
|
}
|
|
2215
1327
|
const data = await parseBody(output.body, context);
|
|
2216
1328
|
let contents = {};
|
|
@@ -2221,40 +1333,9 @@ export const de_SendEmailCommand = async (output, context) => {
|
|
|
2221
1333
|
};
|
|
2222
1334
|
return response;
|
|
2223
1335
|
};
|
|
2224
|
-
const de_SendEmailCommandError = async (output, context) => {
|
|
2225
|
-
const parsedOutput = {
|
|
2226
|
-
...output,
|
|
2227
|
-
body: await parseErrorBody(output.body, context),
|
|
2228
|
-
};
|
|
2229
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2230
|
-
switch (errorCode) {
|
|
2231
|
-
case "AccountSendingPausedException":
|
|
2232
|
-
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
2233
|
-
throw await de_AccountSendingPausedExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "ConfigurationSetDoesNotExist":
|
|
2235
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2236
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ConfigurationSetSendingPausedException":
|
|
2238
|
-
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
2239
|
-
throw await de_ConfigurationSetSendingPausedExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "MailFromDomainNotVerifiedException":
|
|
2241
|
-
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
2242
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "MessageRejected":
|
|
2244
|
-
case "com.amazonaws.ses#MessageRejected":
|
|
2245
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2246
|
-
default:
|
|
2247
|
-
const parsedBody = parsedOutput.body;
|
|
2248
|
-
return throwDefaultError({
|
|
2249
|
-
output,
|
|
2250
|
-
parsedBody: parsedBody.Error,
|
|
2251
|
-
errorCode,
|
|
2252
|
-
});
|
|
2253
|
-
}
|
|
2254
|
-
};
|
|
2255
1336
|
export const de_SendRawEmailCommand = async (output, context) => {
|
|
2256
1337
|
if (output.statusCode >= 300) {
|
|
2257
|
-
return
|
|
1338
|
+
return de_CommandError(output, context);
|
|
2258
1339
|
}
|
|
2259
1340
|
const data = await parseBody(output.body, context);
|
|
2260
1341
|
let contents = {};
|
|
@@ -2265,87 +1346,22 @@ export const de_SendRawEmailCommand = async (output, context) => {
|
|
|
2265
1346
|
};
|
|
2266
1347
|
return response;
|
|
2267
1348
|
};
|
|
2268
|
-
const
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
case "ConfigurationSetDoesNotExist":
|
|
2279
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2280
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "ConfigurationSetSendingPausedException":
|
|
2282
|
-
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
2283
|
-
throw await de_ConfigurationSetSendingPausedExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "MailFromDomainNotVerifiedException":
|
|
2285
|
-
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
2286
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "MessageRejected":
|
|
2288
|
-
case "com.amazonaws.ses#MessageRejected":
|
|
2289
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2290
|
-
default:
|
|
2291
|
-
const parsedBody = parsedOutput.body;
|
|
2292
|
-
return throwDefaultError({
|
|
2293
|
-
output,
|
|
2294
|
-
parsedBody: parsedBody.Error,
|
|
2295
|
-
errorCode,
|
|
2296
|
-
});
|
|
2297
|
-
}
|
|
2298
|
-
};
|
|
2299
|
-
export const de_SendTemplatedEmailCommand = async (output, context) => {
|
|
2300
|
-
if (output.statusCode >= 300) {
|
|
2301
|
-
return de_SendTemplatedEmailCommandError(output, context);
|
|
2302
|
-
}
|
|
2303
|
-
const data = await parseBody(output.body, context);
|
|
2304
|
-
let contents = {};
|
|
2305
|
-
contents = de_SendTemplatedEmailResponse(data.SendTemplatedEmailResult, context);
|
|
2306
|
-
const response = {
|
|
2307
|
-
$metadata: deserializeMetadata(output),
|
|
2308
|
-
...contents,
|
|
1349
|
+
export const de_SendTemplatedEmailCommand = async (output, context) => {
|
|
1350
|
+
if (output.statusCode >= 300) {
|
|
1351
|
+
return de_CommandError(output, context);
|
|
1352
|
+
}
|
|
1353
|
+
const data = await parseBody(output.body, context);
|
|
1354
|
+
let contents = {};
|
|
1355
|
+
contents = de_SendTemplatedEmailResponse(data.SendTemplatedEmailResult, context);
|
|
1356
|
+
const response = {
|
|
1357
|
+
$metadata: deserializeMetadata(output),
|
|
1358
|
+
...contents,
|
|
2309
1359
|
};
|
|
2310
1360
|
return response;
|
|
2311
1361
|
};
|
|
2312
|
-
const de_SendTemplatedEmailCommandError = async (output, context) => {
|
|
2313
|
-
const parsedOutput = {
|
|
2314
|
-
...output,
|
|
2315
|
-
body: await parseErrorBody(output.body, context),
|
|
2316
|
-
};
|
|
2317
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2318
|
-
switch (errorCode) {
|
|
2319
|
-
case "AccountSendingPausedException":
|
|
2320
|
-
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
2321
|
-
throw await de_AccountSendingPausedExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "ConfigurationSetDoesNotExist":
|
|
2323
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2324
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "ConfigurationSetSendingPausedException":
|
|
2326
|
-
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
2327
|
-
throw await de_ConfigurationSetSendingPausedExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "MailFromDomainNotVerifiedException":
|
|
2329
|
-
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
2330
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "MessageRejected":
|
|
2332
|
-
case "com.amazonaws.ses#MessageRejected":
|
|
2333
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2334
|
-
case "TemplateDoesNotExist":
|
|
2335
|
-
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
2336
|
-
throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2337
|
-
default:
|
|
2338
|
-
const parsedBody = parsedOutput.body;
|
|
2339
|
-
return throwDefaultError({
|
|
2340
|
-
output,
|
|
2341
|
-
parsedBody: parsedBody.Error,
|
|
2342
|
-
errorCode,
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
|
-
};
|
|
2346
1362
|
export const de_SetActiveReceiptRuleSetCommand = async (output, context) => {
|
|
2347
1363
|
if (output.statusCode >= 300) {
|
|
2348
|
-
return
|
|
1364
|
+
return de_CommandError(output, context);
|
|
2349
1365
|
}
|
|
2350
1366
|
const data = await parseBody(output.body, context);
|
|
2351
1367
|
let contents = {};
|
|
@@ -2356,28 +1372,9 @@ export const de_SetActiveReceiptRuleSetCommand = async (output, context) => {
|
|
|
2356
1372
|
};
|
|
2357
1373
|
return response;
|
|
2358
1374
|
};
|
|
2359
|
-
const de_SetActiveReceiptRuleSetCommandError = async (output, context) => {
|
|
2360
|
-
const parsedOutput = {
|
|
2361
|
-
...output,
|
|
2362
|
-
body: await parseErrorBody(output.body, context),
|
|
2363
|
-
};
|
|
2364
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2365
|
-
switch (errorCode) {
|
|
2366
|
-
case "RuleSetDoesNotExist":
|
|
2367
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
2368
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2369
|
-
default:
|
|
2370
|
-
const parsedBody = parsedOutput.body;
|
|
2371
|
-
return throwDefaultError({
|
|
2372
|
-
output,
|
|
2373
|
-
parsedBody: parsedBody.Error,
|
|
2374
|
-
errorCode,
|
|
2375
|
-
});
|
|
2376
|
-
}
|
|
2377
|
-
};
|
|
2378
1375
|
export const de_SetIdentityDkimEnabledCommand = async (output, context) => {
|
|
2379
1376
|
if (output.statusCode >= 300) {
|
|
2380
|
-
return
|
|
1377
|
+
return de_CommandError(output, context);
|
|
2381
1378
|
}
|
|
2382
1379
|
const data = await parseBody(output.body, context);
|
|
2383
1380
|
let contents = {};
|
|
@@ -2388,22 +1385,9 @@ export const de_SetIdentityDkimEnabledCommand = async (output, context) => {
|
|
|
2388
1385
|
};
|
|
2389
1386
|
return response;
|
|
2390
1387
|
};
|
|
2391
|
-
const de_SetIdentityDkimEnabledCommandError = async (output, context) => {
|
|
2392
|
-
const parsedOutput = {
|
|
2393
|
-
...output,
|
|
2394
|
-
body: await parseErrorBody(output.body, context),
|
|
2395
|
-
};
|
|
2396
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2397
|
-
const parsedBody = parsedOutput.body;
|
|
2398
|
-
return throwDefaultError({
|
|
2399
|
-
output,
|
|
2400
|
-
parsedBody: parsedBody.Error,
|
|
2401
|
-
errorCode,
|
|
2402
|
-
});
|
|
2403
|
-
};
|
|
2404
1388
|
export const de_SetIdentityFeedbackForwardingEnabledCommand = async (output, context) => {
|
|
2405
1389
|
if (output.statusCode >= 300) {
|
|
2406
|
-
return
|
|
1390
|
+
return de_CommandError(output, context);
|
|
2407
1391
|
}
|
|
2408
1392
|
const data = await parseBody(output.body, context);
|
|
2409
1393
|
let contents = {};
|
|
@@ -2414,22 +1398,9 @@ export const de_SetIdentityFeedbackForwardingEnabledCommand = async (output, con
|
|
|
2414
1398
|
};
|
|
2415
1399
|
return response;
|
|
2416
1400
|
};
|
|
2417
|
-
const de_SetIdentityFeedbackForwardingEnabledCommandError = async (output, context) => {
|
|
2418
|
-
const parsedOutput = {
|
|
2419
|
-
...output,
|
|
2420
|
-
body: await parseErrorBody(output.body, context),
|
|
2421
|
-
};
|
|
2422
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2423
|
-
const parsedBody = parsedOutput.body;
|
|
2424
|
-
return throwDefaultError({
|
|
2425
|
-
output,
|
|
2426
|
-
parsedBody: parsedBody.Error,
|
|
2427
|
-
errorCode,
|
|
2428
|
-
});
|
|
2429
|
-
};
|
|
2430
1401
|
export const de_SetIdentityHeadersInNotificationsEnabledCommand = async (output, context) => {
|
|
2431
1402
|
if (output.statusCode >= 300) {
|
|
2432
|
-
return
|
|
1403
|
+
return de_CommandError(output, context);
|
|
2433
1404
|
}
|
|
2434
1405
|
const data = await parseBody(output.body, context);
|
|
2435
1406
|
let contents = {};
|
|
@@ -2440,22 +1411,9 @@ export const de_SetIdentityHeadersInNotificationsEnabledCommand = async (output,
|
|
|
2440
1411
|
};
|
|
2441
1412
|
return response;
|
|
2442
1413
|
};
|
|
2443
|
-
const de_SetIdentityHeadersInNotificationsEnabledCommandError = async (output, context) => {
|
|
2444
|
-
const parsedOutput = {
|
|
2445
|
-
...output,
|
|
2446
|
-
body: await parseErrorBody(output.body, context),
|
|
2447
|
-
};
|
|
2448
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2449
|
-
const parsedBody = parsedOutput.body;
|
|
2450
|
-
return throwDefaultError({
|
|
2451
|
-
output,
|
|
2452
|
-
parsedBody: parsedBody.Error,
|
|
2453
|
-
errorCode,
|
|
2454
|
-
});
|
|
2455
|
-
};
|
|
2456
1414
|
export const de_SetIdentityMailFromDomainCommand = async (output, context) => {
|
|
2457
1415
|
if (output.statusCode >= 300) {
|
|
2458
|
-
return
|
|
1416
|
+
return de_CommandError(output, context);
|
|
2459
1417
|
}
|
|
2460
1418
|
const data = await parseBody(output.body, context);
|
|
2461
1419
|
let contents = {};
|
|
@@ -2466,22 +1424,9 @@ export const de_SetIdentityMailFromDomainCommand = async (output, context) => {
|
|
|
2466
1424
|
};
|
|
2467
1425
|
return response;
|
|
2468
1426
|
};
|
|
2469
|
-
const de_SetIdentityMailFromDomainCommandError = async (output, context) => {
|
|
2470
|
-
const parsedOutput = {
|
|
2471
|
-
...output,
|
|
2472
|
-
body: await parseErrorBody(output.body, context),
|
|
2473
|
-
};
|
|
2474
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2475
|
-
const parsedBody = parsedOutput.body;
|
|
2476
|
-
return throwDefaultError({
|
|
2477
|
-
output,
|
|
2478
|
-
parsedBody: parsedBody.Error,
|
|
2479
|
-
errorCode,
|
|
2480
|
-
});
|
|
2481
|
-
};
|
|
2482
1427
|
export const de_SetIdentityNotificationTopicCommand = async (output, context) => {
|
|
2483
1428
|
if (output.statusCode >= 300) {
|
|
2484
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
2485
1430
|
}
|
|
2486
1431
|
const data = await parseBody(output.body, context);
|
|
2487
1432
|
let contents = {};
|
|
@@ -2492,22 +1437,9 @@ export const de_SetIdentityNotificationTopicCommand = async (output, context) =>
|
|
|
2492
1437
|
};
|
|
2493
1438
|
return response;
|
|
2494
1439
|
};
|
|
2495
|
-
const de_SetIdentityNotificationTopicCommandError = async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context),
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2501
|
-
const parsedBody = parsedOutput.body;
|
|
2502
|
-
return throwDefaultError({
|
|
2503
|
-
output,
|
|
2504
|
-
parsedBody: parsedBody.Error,
|
|
2505
|
-
errorCode,
|
|
2506
|
-
});
|
|
2507
|
-
};
|
|
2508
1440
|
export const de_SetReceiptRulePositionCommand = async (output, context) => {
|
|
2509
1441
|
if (output.statusCode >= 300) {
|
|
2510
|
-
return
|
|
1442
|
+
return de_CommandError(output, context);
|
|
2511
1443
|
}
|
|
2512
1444
|
const data = await parseBody(output.body, context);
|
|
2513
1445
|
let contents = {};
|
|
@@ -2518,31 +1450,9 @@ export const de_SetReceiptRulePositionCommand = async (output, context) => {
|
|
|
2518
1450
|
};
|
|
2519
1451
|
return response;
|
|
2520
1452
|
};
|
|
2521
|
-
const de_SetReceiptRulePositionCommandError = async (output, context) => {
|
|
2522
|
-
const parsedOutput = {
|
|
2523
|
-
...output,
|
|
2524
|
-
body: await parseErrorBody(output.body, context),
|
|
2525
|
-
};
|
|
2526
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2527
|
-
switch (errorCode) {
|
|
2528
|
-
case "RuleDoesNotExist":
|
|
2529
|
-
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
2530
|
-
throw await de_RuleDoesNotExistExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "RuleSetDoesNotExist":
|
|
2532
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
2533
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2534
|
-
default:
|
|
2535
|
-
const parsedBody = parsedOutput.body;
|
|
2536
|
-
return throwDefaultError({
|
|
2537
|
-
output,
|
|
2538
|
-
parsedBody: parsedBody.Error,
|
|
2539
|
-
errorCode,
|
|
2540
|
-
});
|
|
2541
|
-
}
|
|
2542
|
-
};
|
|
2543
1453
|
export const de_TestRenderTemplateCommand = async (output, context) => {
|
|
2544
1454
|
if (output.statusCode >= 300) {
|
|
2545
|
-
return
|
|
1455
|
+
return de_CommandError(output, context);
|
|
2546
1456
|
}
|
|
2547
1457
|
const data = await parseBody(output.body, context);
|
|
2548
1458
|
let contents = {};
|
|
@@ -2553,34 +1463,9 @@ export const de_TestRenderTemplateCommand = async (output, context) => {
|
|
|
2553
1463
|
};
|
|
2554
1464
|
return response;
|
|
2555
1465
|
};
|
|
2556
|
-
const de_TestRenderTemplateCommandError = async (output, context) => {
|
|
2557
|
-
const parsedOutput = {
|
|
2558
|
-
...output,
|
|
2559
|
-
body: await parseErrorBody(output.body, context),
|
|
2560
|
-
};
|
|
2561
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2562
|
-
switch (errorCode) {
|
|
2563
|
-
case "InvalidRenderingParameter":
|
|
2564
|
-
case "com.amazonaws.ses#InvalidRenderingParameterException":
|
|
2565
|
-
throw await de_InvalidRenderingParameterExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "MissingRenderingAttribute":
|
|
2567
|
-
case "com.amazonaws.ses#MissingRenderingAttributeException":
|
|
2568
|
-
throw await de_MissingRenderingAttributeExceptionRes(parsedOutput, context);
|
|
2569
|
-
case "TemplateDoesNotExist":
|
|
2570
|
-
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
2571
|
-
throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2572
|
-
default:
|
|
2573
|
-
const parsedBody = parsedOutput.body;
|
|
2574
|
-
return throwDefaultError({
|
|
2575
|
-
output,
|
|
2576
|
-
parsedBody: parsedBody.Error,
|
|
2577
|
-
errorCode,
|
|
2578
|
-
});
|
|
2579
|
-
}
|
|
2580
|
-
};
|
|
2581
1466
|
export const de_UpdateAccountSendingEnabledCommand = async (output, context) => {
|
|
2582
1467
|
if (output.statusCode >= 300) {
|
|
2583
|
-
return
|
|
1468
|
+
return de_CommandError(output, context);
|
|
2584
1469
|
}
|
|
2585
1470
|
await collectBody(output.body, context);
|
|
2586
1471
|
const response = {
|
|
@@ -2588,22 +1473,9 @@ export const de_UpdateAccountSendingEnabledCommand = async (output, context) =>
|
|
|
2588
1473
|
};
|
|
2589
1474
|
return response;
|
|
2590
1475
|
};
|
|
2591
|
-
const de_UpdateAccountSendingEnabledCommandError = async (output, context) => {
|
|
2592
|
-
const parsedOutput = {
|
|
2593
|
-
...output,
|
|
2594
|
-
body: await parseErrorBody(output.body, context),
|
|
2595
|
-
};
|
|
2596
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
return throwDefaultError({
|
|
2599
|
-
output,
|
|
2600
|
-
parsedBody: parsedBody.Error,
|
|
2601
|
-
errorCode,
|
|
2602
|
-
});
|
|
2603
|
-
};
|
|
2604
1476
|
export const de_UpdateConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
2605
1477
|
if (output.statusCode >= 300) {
|
|
2606
|
-
return
|
|
1478
|
+
return de_CommandError(output, context);
|
|
2607
1479
|
}
|
|
2608
1480
|
const data = await parseBody(output.body, context);
|
|
2609
1481
|
let contents = {};
|
|
@@ -2614,40 +1486,9 @@ export const de_UpdateConfigurationSetEventDestinationCommand = async (output, c
|
|
|
2614
1486
|
};
|
|
2615
1487
|
return response;
|
|
2616
1488
|
};
|
|
2617
|
-
const de_UpdateConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
2618
|
-
const parsedOutput = {
|
|
2619
|
-
...output,
|
|
2620
|
-
body: await parseErrorBody(output.body, context),
|
|
2621
|
-
};
|
|
2622
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2623
|
-
switch (errorCode) {
|
|
2624
|
-
case "ConfigurationSetDoesNotExist":
|
|
2625
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2626
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "EventDestinationDoesNotExist":
|
|
2628
|
-
case "com.amazonaws.ses#EventDestinationDoesNotExistException":
|
|
2629
|
-
throw await de_EventDestinationDoesNotExistExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "InvalidCloudWatchDestination":
|
|
2631
|
-
case "com.amazonaws.ses#InvalidCloudWatchDestinationException":
|
|
2632
|
-
throw await de_InvalidCloudWatchDestinationExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "InvalidFirehoseDestination":
|
|
2634
|
-
case "com.amazonaws.ses#InvalidFirehoseDestinationException":
|
|
2635
|
-
throw await de_InvalidFirehoseDestinationExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "InvalidSNSDestination":
|
|
2637
|
-
case "com.amazonaws.ses#InvalidSNSDestinationException":
|
|
2638
|
-
throw await de_InvalidSNSDestinationExceptionRes(parsedOutput, context);
|
|
2639
|
-
default:
|
|
2640
|
-
const parsedBody = parsedOutput.body;
|
|
2641
|
-
return throwDefaultError({
|
|
2642
|
-
output,
|
|
2643
|
-
parsedBody: parsedBody.Error,
|
|
2644
|
-
errorCode,
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2647
|
-
};
|
|
2648
1489
|
export const de_UpdateConfigurationSetReputationMetricsEnabledCommand = async (output, context) => {
|
|
2649
1490
|
if (output.statusCode >= 300) {
|
|
2650
|
-
return
|
|
1491
|
+
return de_CommandError(output, context);
|
|
2651
1492
|
}
|
|
2652
1493
|
await collectBody(output.body, context);
|
|
2653
1494
|
const response = {
|
|
@@ -2655,28 +1496,9 @@ export const de_UpdateConfigurationSetReputationMetricsEnabledCommand = async (o
|
|
|
2655
1496
|
};
|
|
2656
1497
|
return response;
|
|
2657
1498
|
};
|
|
2658
|
-
const de_UpdateConfigurationSetReputationMetricsEnabledCommandError = async (output, context) => {
|
|
2659
|
-
const parsedOutput = {
|
|
2660
|
-
...output,
|
|
2661
|
-
body: await parseErrorBody(output.body, context),
|
|
2662
|
-
};
|
|
2663
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2664
|
-
switch (errorCode) {
|
|
2665
|
-
case "ConfigurationSetDoesNotExist":
|
|
2666
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2667
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2668
|
-
default:
|
|
2669
|
-
const parsedBody = parsedOutput.body;
|
|
2670
|
-
return throwDefaultError({
|
|
2671
|
-
output,
|
|
2672
|
-
parsedBody: parsedBody.Error,
|
|
2673
|
-
errorCode,
|
|
2674
|
-
});
|
|
2675
|
-
}
|
|
2676
|
-
};
|
|
2677
1499
|
export const de_UpdateConfigurationSetSendingEnabledCommand = async (output, context) => {
|
|
2678
1500
|
if (output.statusCode >= 300) {
|
|
2679
|
-
return
|
|
1501
|
+
return de_CommandError(output, context);
|
|
2680
1502
|
}
|
|
2681
1503
|
await collectBody(output.body, context);
|
|
2682
1504
|
const response = {
|
|
@@ -2684,28 +1506,9 @@ export const de_UpdateConfigurationSetSendingEnabledCommand = async (output, con
|
|
|
2684
1506
|
};
|
|
2685
1507
|
return response;
|
|
2686
1508
|
};
|
|
2687
|
-
const de_UpdateConfigurationSetSendingEnabledCommandError = async (output, context) => {
|
|
2688
|
-
const parsedOutput = {
|
|
2689
|
-
...output,
|
|
2690
|
-
body: await parseErrorBody(output.body, context),
|
|
2691
|
-
};
|
|
2692
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2693
|
-
switch (errorCode) {
|
|
2694
|
-
case "ConfigurationSetDoesNotExist":
|
|
2695
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2696
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2697
|
-
default:
|
|
2698
|
-
const parsedBody = parsedOutput.body;
|
|
2699
|
-
return throwDefaultError({
|
|
2700
|
-
output,
|
|
2701
|
-
parsedBody: parsedBody.Error,
|
|
2702
|
-
errorCode,
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
};
|
|
2706
1509
|
export const de_UpdateConfigurationSetTrackingOptionsCommand = async (output, context) => {
|
|
2707
1510
|
if (output.statusCode >= 300) {
|
|
2708
|
-
return
|
|
1511
|
+
return de_CommandError(output, context);
|
|
2709
1512
|
}
|
|
2710
1513
|
const data = await parseBody(output.body, context);
|
|
2711
1514
|
let contents = {};
|
|
@@ -2716,34 +1519,9 @@ export const de_UpdateConfigurationSetTrackingOptionsCommand = async (output, co
|
|
|
2716
1519
|
};
|
|
2717
1520
|
return response;
|
|
2718
1521
|
};
|
|
2719
|
-
const de_UpdateConfigurationSetTrackingOptionsCommandError = async (output, context) => {
|
|
2720
|
-
const parsedOutput = {
|
|
2721
|
-
...output,
|
|
2722
|
-
body: await parseErrorBody(output.body, context),
|
|
2723
|
-
};
|
|
2724
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2725
|
-
switch (errorCode) {
|
|
2726
|
-
case "ConfigurationSetDoesNotExist":
|
|
2727
|
-
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2728
|
-
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "InvalidTrackingOptions":
|
|
2730
|
-
case "com.amazonaws.ses#InvalidTrackingOptionsException":
|
|
2731
|
-
throw await de_InvalidTrackingOptionsExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "TrackingOptionsDoesNotExistException":
|
|
2733
|
-
case "com.amazonaws.ses#TrackingOptionsDoesNotExistException":
|
|
2734
|
-
throw await de_TrackingOptionsDoesNotExistExceptionRes(parsedOutput, context);
|
|
2735
|
-
default:
|
|
2736
|
-
const parsedBody = parsedOutput.body;
|
|
2737
|
-
return throwDefaultError({
|
|
2738
|
-
output,
|
|
2739
|
-
parsedBody: parsedBody.Error,
|
|
2740
|
-
errorCode,
|
|
2741
|
-
});
|
|
2742
|
-
}
|
|
2743
|
-
};
|
|
2744
1522
|
export const de_UpdateCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
2745
1523
|
if (output.statusCode >= 300) {
|
|
2746
|
-
return
|
|
1524
|
+
return de_CommandError(output, context);
|
|
2747
1525
|
}
|
|
2748
1526
|
await collectBody(output.body, context);
|
|
2749
1527
|
const response = {
|
|
@@ -2751,34 +1529,9 @@ export const de_UpdateCustomVerificationEmailTemplateCommand = async (output, co
|
|
|
2751
1529
|
};
|
|
2752
1530
|
return response;
|
|
2753
1531
|
};
|
|
2754
|
-
const de_UpdateCustomVerificationEmailTemplateCommandError = async (output, context) => {
|
|
2755
|
-
const parsedOutput = {
|
|
2756
|
-
...output,
|
|
2757
|
-
body: await parseErrorBody(output.body, context),
|
|
2758
|
-
};
|
|
2759
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2760
|
-
switch (errorCode) {
|
|
2761
|
-
case "CustomVerificationEmailInvalidContent":
|
|
2762
|
-
case "com.amazonaws.ses#CustomVerificationEmailInvalidContentException":
|
|
2763
|
-
throw await de_CustomVerificationEmailInvalidContentExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "CustomVerificationEmailTemplateDoesNotExist":
|
|
2765
|
-
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
2766
|
-
throw await de_CustomVerificationEmailTemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "FromEmailAddressNotVerified":
|
|
2768
|
-
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException":
|
|
2769
|
-
throw await de_FromEmailAddressNotVerifiedExceptionRes(parsedOutput, context);
|
|
2770
|
-
default:
|
|
2771
|
-
const parsedBody = parsedOutput.body;
|
|
2772
|
-
return throwDefaultError({
|
|
2773
|
-
output,
|
|
2774
|
-
parsedBody: parsedBody.Error,
|
|
2775
|
-
errorCode,
|
|
2776
|
-
});
|
|
2777
|
-
}
|
|
2778
|
-
};
|
|
2779
1532
|
export const de_UpdateReceiptRuleCommand = async (output, context) => {
|
|
2780
1533
|
if (output.statusCode >= 300) {
|
|
2781
|
-
return
|
|
1534
|
+
return de_CommandError(output, context);
|
|
2782
1535
|
}
|
|
2783
1536
|
const data = await parseBody(output.body, context);
|
|
2784
1537
|
let contents = {};
|
|
@@ -2789,43 +1542,9 @@ export const de_UpdateReceiptRuleCommand = async (output, context) => {
|
|
|
2789
1542
|
};
|
|
2790
1543
|
return response;
|
|
2791
1544
|
};
|
|
2792
|
-
const de_UpdateReceiptRuleCommandError = async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context),
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "InvalidLambdaFunction":
|
|
2800
|
-
case "com.amazonaws.ses#InvalidLambdaFunctionException":
|
|
2801
|
-
throw await de_InvalidLambdaFunctionExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "InvalidS3Configuration":
|
|
2803
|
-
case "com.amazonaws.ses#InvalidS3ConfigurationException":
|
|
2804
|
-
throw await de_InvalidS3ConfigurationExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "InvalidSnsTopic":
|
|
2806
|
-
case "com.amazonaws.ses#InvalidSnsTopicException":
|
|
2807
|
-
throw await de_InvalidSnsTopicExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "LimitExceeded":
|
|
2809
|
-
case "com.amazonaws.ses#LimitExceededException":
|
|
2810
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "RuleDoesNotExist":
|
|
2812
|
-
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
2813
|
-
throw await de_RuleDoesNotExistExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "RuleSetDoesNotExist":
|
|
2815
|
-
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
2816
|
-
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
2817
|
-
default:
|
|
2818
|
-
const parsedBody = parsedOutput.body;
|
|
2819
|
-
return throwDefaultError({
|
|
2820
|
-
output,
|
|
2821
|
-
parsedBody: parsedBody.Error,
|
|
2822
|
-
errorCode,
|
|
2823
|
-
});
|
|
2824
|
-
}
|
|
2825
|
-
};
|
|
2826
1545
|
export const de_UpdateTemplateCommand = async (output, context) => {
|
|
2827
1546
|
if (output.statusCode >= 300) {
|
|
2828
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
2829
1548
|
}
|
|
2830
1549
|
const data = await parseBody(output.body, context);
|
|
2831
1550
|
let contents = {};
|
|
@@ -2836,31 +1555,9 @@ export const de_UpdateTemplateCommand = async (output, context) => {
|
|
|
2836
1555
|
};
|
|
2837
1556
|
return response;
|
|
2838
1557
|
};
|
|
2839
|
-
const de_UpdateTemplateCommandError = async (output, context) => {
|
|
2840
|
-
const parsedOutput = {
|
|
2841
|
-
...output,
|
|
2842
|
-
body: await parseErrorBody(output.body, context),
|
|
2843
|
-
};
|
|
2844
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2845
|
-
switch (errorCode) {
|
|
2846
|
-
case "InvalidTemplate":
|
|
2847
|
-
case "com.amazonaws.ses#InvalidTemplateException":
|
|
2848
|
-
throw await de_InvalidTemplateExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "TemplateDoesNotExist":
|
|
2850
|
-
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
2851
|
-
throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2852
|
-
default:
|
|
2853
|
-
const parsedBody = parsedOutput.body;
|
|
2854
|
-
return throwDefaultError({
|
|
2855
|
-
output,
|
|
2856
|
-
parsedBody: parsedBody.Error,
|
|
2857
|
-
errorCode,
|
|
2858
|
-
});
|
|
2859
|
-
}
|
|
2860
|
-
};
|
|
2861
1558
|
export const de_VerifyDomainDkimCommand = async (output, context) => {
|
|
2862
1559
|
if (output.statusCode >= 300) {
|
|
2863
|
-
return
|
|
1560
|
+
return de_CommandError(output, context);
|
|
2864
1561
|
}
|
|
2865
1562
|
const data = await parseBody(output.body, context);
|
|
2866
1563
|
let contents = {};
|
|
@@ -2871,22 +1568,9 @@ export const de_VerifyDomainDkimCommand = async (output, context) => {
|
|
|
2871
1568
|
};
|
|
2872
1569
|
return response;
|
|
2873
1570
|
};
|
|
2874
|
-
const de_VerifyDomainDkimCommandError = async (output, context) => {
|
|
2875
|
-
const parsedOutput = {
|
|
2876
|
-
...output,
|
|
2877
|
-
body: await parseErrorBody(output.body, context),
|
|
2878
|
-
};
|
|
2879
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2880
|
-
const parsedBody = parsedOutput.body;
|
|
2881
|
-
return throwDefaultError({
|
|
2882
|
-
output,
|
|
2883
|
-
parsedBody: parsedBody.Error,
|
|
2884
|
-
errorCode,
|
|
2885
|
-
});
|
|
2886
|
-
};
|
|
2887
1571
|
export const de_VerifyDomainIdentityCommand = async (output, context) => {
|
|
2888
1572
|
if (output.statusCode >= 300) {
|
|
2889
|
-
return
|
|
1573
|
+
return de_CommandError(output, context);
|
|
2890
1574
|
}
|
|
2891
1575
|
const data = await parseBody(output.body, context);
|
|
2892
1576
|
let contents = {};
|
|
@@ -2897,22 +1581,9 @@ export const de_VerifyDomainIdentityCommand = async (output, context) => {
|
|
|
2897
1581
|
};
|
|
2898
1582
|
return response;
|
|
2899
1583
|
};
|
|
2900
|
-
const de_VerifyDomainIdentityCommandError = async (output, context) => {
|
|
2901
|
-
const parsedOutput = {
|
|
2902
|
-
...output,
|
|
2903
|
-
body: await parseErrorBody(output.body, context),
|
|
2904
|
-
};
|
|
2905
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody: parsedBody.Error,
|
|
2910
|
-
errorCode,
|
|
2911
|
-
});
|
|
2912
|
-
};
|
|
2913
1584
|
export const de_VerifyEmailAddressCommand = async (output, context) => {
|
|
2914
1585
|
if (output.statusCode >= 300) {
|
|
2915
|
-
return
|
|
1586
|
+
return de_CommandError(output, context);
|
|
2916
1587
|
}
|
|
2917
1588
|
await collectBody(output.body, context);
|
|
2918
1589
|
const response = {
|
|
@@ -2920,22 +1591,9 @@ export const de_VerifyEmailAddressCommand = async (output, context) => {
|
|
|
2920
1591
|
};
|
|
2921
1592
|
return response;
|
|
2922
1593
|
};
|
|
2923
|
-
const de_VerifyEmailAddressCommandError = async (output, context) => {
|
|
2924
|
-
const parsedOutput = {
|
|
2925
|
-
...output,
|
|
2926
|
-
body: await parseErrorBody(output.body, context),
|
|
2927
|
-
};
|
|
2928
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2929
|
-
const parsedBody = parsedOutput.body;
|
|
2930
|
-
return throwDefaultError({
|
|
2931
|
-
output,
|
|
2932
|
-
parsedBody: parsedBody.Error,
|
|
2933
|
-
errorCode,
|
|
2934
|
-
});
|
|
2935
|
-
};
|
|
2936
1594
|
export const de_VerifyEmailIdentityCommand = async (output, context) => {
|
|
2937
1595
|
if (output.statusCode >= 300) {
|
|
2938
|
-
return
|
|
1596
|
+
return de_CommandError(output, context);
|
|
2939
1597
|
}
|
|
2940
1598
|
const data = await parseBody(output.body, context);
|
|
2941
1599
|
let contents = {};
|
|
@@ -2946,18 +1604,123 @@ export const de_VerifyEmailIdentityCommand = async (output, context) => {
|
|
|
2946
1604
|
};
|
|
2947
1605
|
return response;
|
|
2948
1606
|
};
|
|
2949
|
-
const
|
|
1607
|
+
const de_CommandError = async (output, context) => {
|
|
2950
1608
|
const parsedOutput = {
|
|
2951
1609
|
...output,
|
|
2952
1610
|
body: await parseErrorBody(output.body, context),
|
|
2953
1611
|
};
|
|
2954
1612
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
1613
|
+
switch (errorCode) {
|
|
1614
|
+
case "AlreadyExists":
|
|
1615
|
+
case "com.amazonaws.ses#AlreadyExistsException":
|
|
1616
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1617
|
+
case "LimitExceeded":
|
|
1618
|
+
case "com.amazonaws.ses#LimitExceededException":
|
|
1619
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1620
|
+
case "RuleSetDoesNotExist":
|
|
1621
|
+
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1622
|
+
throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1623
|
+
case "ConfigurationSetAlreadyExists":
|
|
1624
|
+
case "com.amazonaws.ses#ConfigurationSetAlreadyExistsException":
|
|
1625
|
+
throw await de_ConfigurationSetAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1626
|
+
case "InvalidConfigurationSet":
|
|
1627
|
+
case "com.amazonaws.ses#InvalidConfigurationSetException":
|
|
1628
|
+
throw await de_InvalidConfigurationSetExceptionRes(parsedOutput, context);
|
|
1629
|
+
case "ConfigurationSetDoesNotExist":
|
|
1630
|
+
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1631
|
+
throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
|
|
1632
|
+
case "EventDestinationAlreadyExists":
|
|
1633
|
+
case "com.amazonaws.ses#EventDestinationAlreadyExistsException":
|
|
1634
|
+
throw await de_EventDestinationAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1635
|
+
case "InvalidCloudWatchDestination":
|
|
1636
|
+
case "com.amazonaws.ses#InvalidCloudWatchDestinationException":
|
|
1637
|
+
throw await de_InvalidCloudWatchDestinationExceptionRes(parsedOutput, context);
|
|
1638
|
+
case "InvalidFirehoseDestination":
|
|
1639
|
+
case "com.amazonaws.ses#InvalidFirehoseDestinationException":
|
|
1640
|
+
throw await de_InvalidFirehoseDestinationExceptionRes(parsedOutput, context);
|
|
1641
|
+
case "InvalidSNSDestination":
|
|
1642
|
+
case "com.amazonaws.ses#InvalidSNSDestinationException":
|
|
1643
|
+
throw await de_InvalidSNSDestinationExceptionRes(parsedOutput, context);
|
|
1644
|
+
case "InvalidTrackingOptions":
|
|
1645
|
+
case "com.amazonaws.ses#InvalidTrackingOptionsException":
|
|
1646
|
+
throw await de_InvalidTrackingOptionsExceptionRes(parsedOutput, context);
|
|
1647
|
+
case "TrackingOptionsAlreadyExistsException":
|
|
1648
|
+
case "com.amazonaws.ses#TrackingOptionsAlreadyExistsException":
|
|
1649
|
+
throw await de_TrackingOptionsAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1650
|
+
case "CustomVerificationEmailInvalidContent":
|
|
1651
|
+
case "com.amazonaws.ses#CustomVerificationEmailInvalidContentException":
|
|
1652
|
+
throw await de_CustomVerificationEmailInvalidContentExceptionRes(parsedOutput, context);
|
|
1653
|
+
case "CustomVerificationEmailTemplateAlreadyExists":
|
|
1654
|
+
case "com.amazonaws.ses#CustomVerificationEmailTemplateAlreadyExistsException":
|
|
1655
|
+
throw await de_CustomVerificationEmailTemplateAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1656
|
+
case "FromEmailAddressNotVerified":
|
|
1657
|
+
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException":
|
|
1658
|
+
throw await de_FromEmailAddressNotVerifiedExceptionRes(parsedOutput, context);
|
|
1659
|
+
case "InvalidLambdaFunction":
|
|
1660
|
+
case "com.amazonaws.ses#InvalidLambdaFunctionException":
|
|
1661
|
+
throw await de_InvalidLambdaFunctionExceptionRes(parsedOutput, context);
|
|
1662
|
+
case "InvalidS3Configuration":
|
|
1663
|
+
case "com.amazonaws.ses#InvalidS3ConfigurationException":
|
|
1664
|
+
throw await de_InvalidS3ConfigurationExceptionRes(parsedOutput, context);
|
|
1665
|
+
case "InvalidSnsTopic":
|
|
1666
|
+
case "com.amazonaws.ses#InvalidSnsTopicException":
|
|
1667
|
+
throw await de_InvalidSnsTopicExceptionRes(parsedOutput, context);
|
|
1668
|
+
case "RuleDoesNotExist":
|
|
1669
|
+
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
1670
|
+
throw await de_RuleDoesNotExistExceptionRes(parsedOutput, context);
|
|
1671
|
+
case "InvalidTemplate":
|
|
1672
|
+
case "com.amazonaws.ses#InvalidTemplateException":
|
|
1673
|
+
throw await de_InvalidTemplateExceptionRes(parsedOutput, context);
|
|
1674
|
+
case "EventDestinationDoesNotExist":
|
|
1675
|
+
case "com.amazonaws.ses#EventDestinationDoesNotExistException":
|
|
1676
|
+
throw await de_EventDestinationDoesNotExistExceptionRes(parsedOutput, context);
|
|
1677
|
+
case "TrackingOptionsDoesNotExistException":
|
|
1678
|
+
case "com.amazonaws.ses#TrackingOptionsDoesNotExistException":
|
|
1679
|
+
throw await de_TrackingOptionsDoesNotExistExceptionRes(parsedOutput, context);
|
|
1680
|
+
case "CannotDelete":
|
|
1681
|
+
case "com.amazonaws.ses#CannotDeleteException":
|
|
1682
|
+
throw await de_CannotDeleteExceptionRes(parsedOutput, context);
|
|
1683
|
+
case "CustomVerificationEmailTemplateDoesNotExist":
|
|
1684
|
+
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
1685
|
+
throw await de_CustomVerificationEmailTemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1686
|
+
case "TemplateDoesNotExist":
|
|
1687
|
+
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
1688
|
+
throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1689
|
+
case "InvalidDeliveryOptions":
|
|
1690
|
+
case "com.amazonaws.ses#InvalidDeliveryOptionsException":
|
|
1691
|
+
throw await de_InvalidDeliveryOptionsExceptionRes(parsedOutput, context);
|
|
1692
|
+
case "InvalidPolicy":
|
|
1693
|
+
case "com.amazonaws.ses#InvalidPolicyException":
|
|
1694
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1695
|
+
case "MessageRejected":
|
|
1696
|
+
case "com.amazonaws.ses#MessageRejected":
|
|
1697
|
+
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
1698
|
+
case "AccountSendingPausedException":
|
|
1699
|
+
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
1700
|
+
throw await de_AccountSendingPausedExceptionRes(parsedOutput, context);
|
|
1701
|
+
case "ConfigurationSetSendingPausedException":
|
|
1702
|
+
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
1703
|
+
throw await de_ConfigurationSetSendingPausedExceptionRes(parsedOutput, context);
|
|
1704
|
+
case "MailFromDomainNotVerifiedException":
|
|
1705
|
+
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
1706
|
+
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
1707
|
+
case "ProductionAccessNotGranted":
|
|
1708
|
+
case "com.amazonaws.ses#ProductionAccessNotGrantedException":
|
|
1709
|
+
throw await de_ProductionAccessNotGrantedExceptionRes(parsedOutput, context);
|
|
1710
|
+
case "InvalidRenderingParameter":
|
|
1711
|
+
case "com.amazonaws.ses#InvalidRenderingParameterException":
|
|
1712
|
+
throw await de_InvalidRenderingParameterExceptionRes(parsedOutput, context);
|
|
1713
|
+
case "MissingRenderingAttribute":
|
|
1714
|
+
case "com.amazonaws.ses#MissingRenderingAttributeException":
|
|
1715
|
+
throw await de_MissingRenderingAttributeExceptionRes(parsedOutput, context);
|
|
1716
|
+
default:
|
|
1717
|
+
const parsedBody = parsedOutput.body;
|
|
1718
|
+
return throwDefaultError({
|
|
1719
|
+
output,
|
|
1720
|
+
parsedBody: parsedBody.Error,
|
|
1721
|
+
errorCode,
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
2961
1724
|
};
|
|
2962
1725
|
const de_AccountSendingPausedExceptionRes = async (parsedOutput, context) => {
|
|
2963
1726
|
const body = parsedOutput.body;
|