@aws-sdk/client-customer-profiles 3.504.0 → 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 +64 -1624
- package/dist-es/protocols/Aws_restJson1.js +54 -1614
- package/package.json +3 -3
|
@@ -788,7 +788,7 @@ export const se_UpdateProfileCommand = async (input, context) => {
|
|
|
788
788
|
};
|
|
789
789
|
export const de_AddProfileKeyCommand = async (output, context) => {
|
|
790
790
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
-
return
|
|
791
|
+
return de_CommandError(output, context);
|
|
792
792
|
}
|
|
793
793
|
const contents = map({
|
|
794
794
|
$metadata: deserializeMetadata(output),
|
|
@@ -801,40 +801,9 @@ export const de_AddProfileKeyCommand = async (output, context) => {
|
|
|
801
801
|
Object.assign(contents, doc);
|
|
802
802
|
return contents;
|
|
803
803
|
};
|
|
804
|
-
const de_AddProfileKeyCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "AccessDeniedException":
|
|
812
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
813
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
814
|
-
case "BadRequestException":
|
|
815
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
816
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
817
|
-
case "InternalServerException":
|
|
818
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
819
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ResourceNotFoundException":
|
|
821
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
822
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ThrottlingException":
|
|
824
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
825
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
804
|
export const de_CreateCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
836
805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
838
807
|
}
|
|
839
808
|
const contents = map({
|
|
840
809
|
$metadata: deserializeMetadata(output),
|
|
@@ -854,40 +823,9 @@ export const de_CreateCalculatedAttributeDefinitionCommand = async (output, cont
|
|
|
854
823
|
Object.assign(contents, doc);
|
|
855
824
|
return contents;
|
|
856
825
|
};
|
|
857
|
-
const de_CreateCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "AccessDeniedException":
|
|
865
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
866
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
867
|
-
case "BadRequestException":
|
|
868
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
869
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
870
|
-
case "InternalServerException":
|
|
871
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
872
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ResourceNotFoundException":
|
|
874
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
875
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ThrottlingException":
|
|
877
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
878
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
826
|
export const de_CreateDomainCommand = async (output, context) => {
|
|
889
827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return
|
|
828
|
+
return de_CommandError(output, context);
|
|
891
829
|
}
|
|
892
830
|
const contents = map({
|
|
893
831
|
$metadata: deserializeMetadata(output),
|
|
@@ -907,40 +845,9 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
907
845
|
Object.assign(contents, doc);
|
|
908
846
|
return contents;
|
|
909
847
|
};
|
|
910
|
-
const de_CreateDomainCommandError = async (output, context) => {
|
|
911
|
-
const parsedOutput = {
|
|
912
|
-
...output,
|
|
913
|
-
body: await parseErrorBody(output.body, context),
|
|
914
|
-
};
|
|
915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
-
switch (errorCode) {
|
|
917
|
-
case "AccessDeniedException":
|
|
918
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
919
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
920
|
-
case "BadRequestException":
|
|
921
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
922
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
923
|
-
case "InternalServerException":
|
|
924
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
925
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ResourceNotFoundException":
|
|
927
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ThrottlingException":
|
|
930
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
931
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
932
|
-
default:
|
|
933
|
-
const parsedBody = parsedOutput.body;
|
|
934
|
-
return throwDefaultError({
|
|
935
|
-
output,
|
|
936
|
-
parsedBody,
|
|
937
|
-
errorCode,
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
848
|
export const de_CreateEventStreamCommand = async (output, context) => {
|
|
942
849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
944
851
|
}
|
|
945
852
|
const contents = map({
|
|
946
853
|
$metadata: deserializeMetadata(output),
|
|
@@ -953,40 +860,9 @@ export const de_CreateEventStreamCommand = async (output, context) => {
|
|
|
953
860
|
Object.assign(contents, doc);
|
|
954
861
|
return contents;
|
|
955
862
|
};
|
|
956
|
-
const de_CreateEventStreamCommandError = async (output, context) => {
|
|
957
|
-
const parsedOutput = {
|
|
958
|
-
...output,
|
|
959
|
-
body: await parseErrorBody(output.body, context),
|
|
960
|
-
};
|
|
961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
-
switch (errorCode) {
|
|
963
|
-
case "AccessDeniedException":
|
|
964
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
965
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
966
|
-
case "BadRequestException":
|
|
967
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
968
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
969
|
-
case "InternalServerException":
|
|
970
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
971
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ResourceNotFoundException":
|
|
973
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
974
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ThrottlingException":
|
|
976
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
977
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
978
|
-
default:
|
|
979
|
-
const parsedBody = parsedOutput.body;
|
|
980
|
-
return throwDefaultError({
|
|
981
|
-
output,
|
|
982
|
-
parsedBody,
|
|
983
|
-
errorCode,
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
863
|
export const de_CreateIntegrationWorkflowCommand = async (output, context) => {
|
|
988
864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
989
|
-
return
|
|
865
|
+
return de_CommandError(output, context);
|
|
990
866
|
}
|
|
991
867
|
const contents = map({
|
|
992
868
|
$metadata: deserializeMetadata(output),
|
|
@@ -999,40 +875,9 @@ export const de_CreateIntegrationWorkflowCommand = async (output, context) => {
|
|
|
999
875
|
Object.assign(contents, doc);
|
|
1000
876
|
return contents;
|
|
1001
877
|
};
|
|
1002
|
-
const de_CreateIntegrationWorkflowCommandError = async (output, context) => {
|
|
1003
|
-
const parsedOutput = {
|
|
1004
|
-
...output,
|
|
1005
|
-
body: await parseErrorBody(output.body, context),
|
|
1006
|
-
};
|
|
1007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "AccessDeniedException":
|
|
1010
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "BadRequestException":
|
|
1013
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1014
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "InternalServerException":
|
|
1016
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ResourceNotFoundException":
|
|
1019
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "ThrottlingException":
|
|
1022
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1023
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1024
|
-
default:
|
|
1025
|
-
const parsedBody = parsedOutput.body;
|
|
1026
|
-
return throwDefaultError({
|
|
1027
|
-
output,
|
|
1028
|
-
parsedBody,
|
|
1029
|
-
errorCode,
|
|
1030
|
-
});
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
878
|
export const de_CreateProfileCommand = async (output, context) => {
|
|
1034
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
1036
881
|
}
|
|
1037
882
|
const contents = map({
|
|
1038
883
|
$metadata: deserializeMetadata(output),
|
|
@@ -1044,40 +889,9 @@ export const de_CreateProfileCommand = async (output, context) => {
|
|
|
1044
889
|
Object.assign(contents, doc);
|
|
1045
890
|
return contents;
|
|
1046
891
|
};
|
|
1047
|
-
const de_CreateProfileCommandError = async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context),
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "AccessDeniedException":
|
|
1055
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "BadRequestException":
|
|
1058
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1059
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "InternalServerException":
|
|
1061
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1062
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ResourceNotFoundException":
|
|
1064
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ThrottlingException":
|
|
1067
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1068
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1069
|
-
default:
|
|
1070
|
-
const parsedBody = parsedOutput.body;
|
|
1071
|
-
return throwDefaultError({
|
|
1072
|
-
output,
|
|
1073
|
-
parsedBody,
|
|
1074
|
-
errorCode,
|
|
1075
|
-
});
|
|
1076
|
-
}
|
|
1077
|
-
};
|
|
1078
892
|
export const de_DeleteCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
1079
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
894
|
+
return de_CommandError(output, context);
|
|
1081
895
|
}
|
|
1082
896
|
const contents = map({
|
|
1083
897
|
$metadata: deserializeMetadata(output),
|
|
@@ -1085,40 +899,9 @@ export const de_DeleteCalculatedAttributeDefinitionCommand = async (output, cont
|
|
|
1085
899
|
await collectBody(output.body, context);
|
|
1086
900
|
return contents;
|
|
1087
901
|
};
|
|
1088
|
-
const de_DeleteCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
1089
|
-
const parsedOutput = {
|
|
1090
|
-
...output,
|
|
1091
|
-
body: await parseErrorBody(output.body, context),
|
|
1092
|
-
};
|
|
1093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
-
switch (errorCode) {
|
|
1095
|
-
case "AccessDeniedException":
|
|
1096
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1097
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "BadRequestException":
|
|
1099
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1100
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "InternalServerException":
|
|
1102
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1103
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ResourceNotFoundException":
|
|
1105
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ThrottlingException":
|
|
1108
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1109
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode,
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
};
|
|
1119
902
|
export const de_DeleteDomainCommand = async (output, context) => {
|
|
1120
903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
904
|
+
return de_CommandError(output, context);
|
|
1122
905
|
}
|
|
1123
906
|
const contents = map({
|
|
1124
907
|
$metadata: deserializeMetadata(output),
|
|
@@ -1130,40 +913,9 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
1130
913
|
Object.assign(contents, doc);
|
|
1131
914
|
return contents;
|
|
1132
915
|
};
|
|
1133
|
-
const de_DeleteDomainCommandError = async (output, context) => {
|
|
1134
|
-
const parsedOutput = {
|
|
1135
|
-
...output,
|
|
1136
|
-
body: await parseErrorBody(output.body, context),
|
|
1137
|
-
};
|
|
1138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "AccessDeniedException":
|
|
1141
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1142
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "BadRequestException":
|
|
1144
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1145
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "InternalServerException":
|
|
1147
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "ResourceNotFoundException":
|
|
1150
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1151
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ThrottlingException":
|
|
1153
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1154
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1155
|
-
default:
|
|
1156
|
-
const parsedBody = parsedOutput.body;
|
|
1157
|
-
return throwDefaultError({
|
|
1158
|
-
output,
|
|
1159
|
-
parsedBody,
|
|
1160
|
-
errorCode,
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
};
|
|
1164
916
|
export const de_DeleteEventStreamCommand = async (output, context) => {
|
|
1165
917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
1167
919
|
}
|
|
1168
920
|
const contents = map({
|
|
1169
921
|
$metadata: deserializeMetadata(output),
|
|
@@ -1171,40 +923,9 @@ export const de_DeleteEventStreamCommand = async (output, context) => {
|
|
|
1171
923
|
await collectBody(output.body, context);
|
|
1172
924
|
return contents;
|
|
1173
925
|
};
|
|
1174
|
-
const de_DeleteEventStreamCommandError = async (output, context) => {
|
|
1175
|
-
const parsedOutput = {
|
|
1176
|
-
...output,
|
|
1177
|
-
body: await parseErrorBody(output.body, context),
|
|
1178
|
-
};
|
|
1179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "AccessDeniedException":
|
|
1182
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1183
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "BadRequestException":
|
|
1185
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1186
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "InternalServerException":
|
|
1188
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1189
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ResourceNotFoundException":
|
|
1191
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1192
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ThrottlingException":
|
|
1194
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1195
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1196
|
-
default:
|
|
1197
|
-
const parsedBody = parsedOutput.body;
|
|
1198
|
-
return throwDefaultError({
|
|
1199
|
-
output,
|
|
1200
|
-
parsedBody,
|
|
1201
|
-
errorCode,
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
926
|
export const de_DeleteIntegrationCommand = async (output, context) => {
|
|
1206
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
1208
929
|
}
|
|
1209
930
|
const contents = map({
|
|
1210
931
|
$metadata: deserializeMetadata(output),
|
|
@@ -1216,40 +937,9 @@ export const de_DeleteIntegrationCommand = async (output, context) => {
|
|
|
1216
937
|
Object.assign(contents, doc);
|
|
1217
938
|
return contents;
|
|
1218
939
|
};
|
|
1219
|
-
const de_DeleteIntegrationCommandError = async (output, context) => {
|
|
1220
|
-
const parsedOutput = {
|
|
1221
|
-
...output,
|
|
1222
|
-
body: await parseErrorBody(output.body, context),
|
|
1223
|
-
};
|
|
1224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
-
switch (errorCode) {
|
|
1226
|
-
case "AccessDeniedException":
|
|
1227
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1228
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "BadRequestException":
|
|
1230
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1231
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "InternalServerException":
|
|
1233
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1234
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ResourceNotFoundException":
|
|
1236
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1237
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ThrottlingException":
|
|
1239
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1240
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1241
|
-
default:
|
|
1242
|
-
const parsedBody = parsedOutput.body;
|
|
1243
|
-
return throwDefaultError({
|
|
1244
|
-
output,
|
|
1245
|
-
parsedBody,
|
|
1246
|
-
errorCode,
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
940
|
export const de_DeleteProfileCommand = async (output, context) => {
|
|
1251
941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
1253
943
|
}
|
|
1254
944
|
const contents = map({
|
|
1255
945
|
$metadata: deserializeMetadata(output),
|
|
@@ -1261,40 +951,9 @@ export const de_DeleteProfileCommand = async (output, context) => {
|
|
|
1261
951
|
Object.assign(contents, doc);
|
|
1262
952
|
return contents;
|
|
1263
953
|
};
|
|
1264
|
-
const de_DeleteProfileCommandError = async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context),
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "AccessDeniedException":
|
|
1272
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1273
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "BadRequestException":
|
|
1275
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1276
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "InternalServerException":
|
|
1278
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1279
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ResourceNotFoundException":
|
|
1281
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1282
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ThrottlingException":
|
|
1284
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1285
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1286
|
-
default:
|
|
1287
|
-
const parsedBody = parsedOutput.body;
|
|
1288
|
-
return throwDefaultError({
|
|
1289
|
-
output,
|
|
1290
|
-
parsedBody,
|
|
1291
|
-
errorCode,
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
};
|
|
1295
954
|
export const de_DeleteProfileKeyCommand = async (output, context) => {
|
|
1296
955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1297
|
-
return
|
|
956
|
+
return de_CommandError(output, context);
|
|
1298
957
|
}
|
|
1299
958
|
const contents = map({
|
|
1300
959
|
$metadata: deserializeMetadata(output),
|
|
@@ -1306,40 +965,9 @@ export const de_DeleteProfileKeyCommand = async (output, context) => {
|
|
|
1306
965
|
Object.assign(contents, doc);
|
|
1307
966
|
return contents;
|
|
1308
967
|
};
|
|
1309
|
-
const de_DeleteProfileKeyCommandError = async (output, context) => {
|
|
1310
|
-
const parsedOutput = {
|
|
1311
|
-
...output,
|
|
1312
|
-
body: await parseErrorBody(output.body, context),
|
|
1313
|
-
};
|
|
1314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
-
switch (errorCode) {
|
|
1316
|
-
case "AccessDeniedException":
|
|
1317
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1318
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "BadRequestException":
|
|
1320
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1321
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "InternalServerException":
|
|
1323
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ResourceNotFoundException":
|
|
1326
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ThrottlingException":
|
|
1329
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1330
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
return throwDefaultError({
|
|
1334
|
-
output,
|
|
1335
|
-
parsedBody,
|
|
1336
|
-
errorCode,
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
};
|
|
1340
968
|
export const de_DeleteProfileObjectCommand = async (output, context) => {
|
|
1341
969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
970
|
+
return de_CommandError(output, context);
|
|
1343
971
|
}
|
|
1344
972
|
const contents = map({
|
|
1345
973
|
$metadata: deserializeMetadata(output),
|
|
@@ -1351,40 +979,9 @@ export const de_DeleteProfileObjectCommand = async (output, context) => {
|
|
|
1351
979
|
Object.assign(contents, doc);
|
|
1352
980
|
return contents;
|
|
1353
981
|
};
|
|
1354
|
-
const de_DeleteProfileObjectCommandError = async (output, context) => {
|
|
1355
|
-
const parsedOutput = {
|
|
1356
|
-
...output,
|
|
1357
|
-
body: await parseErrorBody(output.body, context),
|
|
1358
|
-
};
|
|
1359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
|
-
switch (errorCode) {
|
|
1361
|
-
case "AccessDeniedException":
|
|
1362
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1363
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "BadRequestException":
|
|
1365
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1366
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "InternalServerException":
|
|
1368
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1369
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "ResourceNotFoundException":
|
|
1371
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1372
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "ThrottlingException":
|
|
1374
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1375
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1376
|
-
default:
|
|
1377
|
-
const parsedBody = parsedOutput.body;
|
|
1378
|
-
return throwDefaultError({
|
|
1379
|
-
output,
|
|
1380
|
-
parsedBody,
|
|
1381
|
-
errorCode,
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
982
|
export const de_DeleteProfileObjectTypeCommand = async (output, context) => {
|
|
1386
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1387
|
-
return
|
|
984
|
+
return de_CommandError(output, context);
|
|
1388
985
|
}
|
|
1389
986
|
const contents = map({
|
|
1390
987
|
$metadata: deserializeMetadata(output),
|
|
@@ -1396,40 +993,9 @@ export const de_DeleteProfileObjectTypeCommand = async (output, context) => {
|
|
|
1396
993
|
Object.assign(contents, doc);
|
|
1397
994
|
return contents;
|
|
1398
995
|
};
|
|
1399
|
-
const de_DeleteProfileObjectTypeCommandError = async (output, context) => {
|
|
1400
|
-
const parsedOutput = {
|
|
1401
|
-
...output,
|
|
1402
|
-
body: await parseErrorBody(output.body, context),
|
|
1403
|
-
};
|
|
1404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
-
switch (errorCode) {
|
|
1406
|
-
case "AccessDeniedException":
|
|
1407
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1408
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "BadRequestException":
|
|
1410
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1411
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "InternalServerException":
|
|
1413
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1414
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "ResourceNotFoundException":
|
|
1416
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1417
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "ThrottlingException":
|
|
1419
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1420
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1421
|
-
default:
|
|
1422
|
-
const parsedBody = parsedOutput.body;
|
|
1423
|
-
return throwDefaultError({
|
|
1424
|
-
output,
|
|
1425
|
-
parsedBody,
|
|
1426
|
-
errorCode,
|
|
1427
|
-
});
|
|
1428
|
-
}
|
|
1429
|
-
};
|
|
1430
996
|
export const de_DeleteWorkflowCommand = async (output, context) => {
|
|
1431
997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1432
|
-
return
|
|
998
|
+
return de_CommandError(output, context);
|
|
1433
999
|
}
|
|
1434
1000
|
const contents = map({
|
|
1435
1001
|
$metadata: deserializeMetadata(output),
|
|
@@ -1437,40 +1003,9 @@ export const de_DeleteWorkflowCommand = async (output, context) => {
|
|
|
1437
1003
|
await collectBody(output.body, context);
|
|
1438
1004
|
return contents;
|
|
1439
1005
|
};
|
|
1440
|
-
const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "AccessDeniedException":
|
|
1448
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1449
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "BadRequestException":
|
|
1451
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1452
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "InternalServerException":
|
|
1454
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1455
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ResourceNotFoundException":
|
|
1457
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1458
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ThrottlingException":
|
|
1460
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1461
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
return throwDefaultError({
|
|
1465
|
-
output,
|
|
1466
|
-
parsedBody,
|
|
1467
|
-
errorCode,
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
};
|
|
1471
1006
|
export const de_DetectProfileObjectTypeCommand = async (output, context) => {
|
|
1472
1007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
|
-
return
|
|
1008
|
+
return de_CommandError(output, context);
|
|
1474
1009
|
}
|
|
1475
1010
|
const contents = map({
|
|
1476
1011
|
$metadata: deserializeMetadata(output),
|
|
@@ -1482,40 +1017,9 @@ export const de_DetectProfileObjectTypeCommand = async (output, context) => {
|
|
|
1482
1017
|
Object.assign(contents, doc);
|
|
1483
1018
|
return contents;
|
|
1484
1019
|
};
|
|
1485
|
-
const de_DetectProfileObjectTypeCommandError = async (output, context) => {
|
|
1486
|
-
const parsedOutput = {
|
|
1487
|
-
...output,
|
|
1488
|
-
body: await parseErrorBody(output.body, context),
|
|
1489
|
-
};
|
|
1490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
-
switch (errorCode) {
|
|
1492
|
-
case "AccessDeniedException":
|
|
1493
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1494
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "BadRequestException":
|
|
1496
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1497
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "InternalServerException":
|
|
1499
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1500
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ResourceNotFoundException":
|
|
1502
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1503
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "ThrottlingException":
|
|
1505
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1506
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1507
|
-
default:
|
|
1508
|
-
const parsedBody = parsedOutput.body;
|
|
1509
|
-
return throwDefaultError({
|
|
1510
|
-
output,
|
|
1511
|
-
parsedBody,
|
|
1512
|
-
errorCode,
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
1020
|
export const de_GetAutoMergingPreviewCommand = async (output, context) => {
|
|
1517
1021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1518
|
-
return
|
|
1022
|
+
return de_CommandError(output, context);
|
|
1519
1023
|
}
|
|
1520
1024
|
const contents = map({
|
|
1521
1025
|
$metadata: deserializeMetadata(output),
|
|
@@ -1530,40 +1034,9 @@ export const de_GetAutoMergingPreviewCommand = async (output, context) => {
|
|
|
1530
1034
|
Object.assign(contents, doc);
|
|
1531
1035
|
return contents;
|
|
1532
1036
|
};
|
|
1533
|
-
const de_GetAutoMergingPreviewCommandError = async (output, context) => {
|
|
1534
|
-
const parsedOutput = {
|
|
1535
|
-
...output,
|
|
1536
|
-
body: await parseErrorBody(output.body, context),
|
|
1537
|
-
};
|
|
1538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
-
switch (errorCode) {
|
|
1540
|
-
case "AccessDeniedException":
|
|
1541
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "BadRequestException":
|
|
1544
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1545
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "InternalServerException":
|
|
1547
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceNotFoundException":
|
|
1550
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ThrottlingException":
|
|
1553
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1554
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1555
|
-
default:
|
|
1556
|
-
const parsedBody = parsedOutput.body;
|
|
1557
|
-
return throwDefaultError({
|
|
1558
|
-
output,
|
|
1559
|
-
parsedBody,
|
|
1560
|
-
errorCode,
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
};
|
|
1564
1037
|
export const de_GetCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
1565
1038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1566
|
-
return
|
|
1039
|
+
return de_CommandError(output, context);
|
|
1567
1040
|
}
|
|
1568
1041
|
const contents = map({
|
|
1569
1042
|
$metadata: deserializeMetadata(output),
|
|
@@ -1583,40 +1056,9 @@ export const de_GetCalculatedAttributeDefinitionCommand = async (output, context
|
|
|
1583
1056
|
Object.assign(contents, doc);
|
|
1584
1057
|
return contents;
|
|
1585
1058
|
};
|
|
1586
|
-
const de_GetCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
1587
|
-
const parsedOutput = {
|
|
1588
|
-
...output,
|
|
1589
|
-
body: await parseErrorBody(output.body, context),
|
|
1590
|
-
};
|
|
1591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
|
-
switch (errorCode) {
|
|
1593
|
-
case "AccessDeniedException":
|
|
1594
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1595
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "BadRequestException":
|
|
1597
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1598
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1599
|
-
case "InternalServerException":
|
|
1600
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1601
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1602
|
-
case "ResourceNotFoundException":
|
|
1603
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "ThrottlingException":
|
|
1606
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1607
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1608
|
-
default:
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
return throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody,
|
|
1613
|
-
errorCode,
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
};
|
|
1617
1059
|
export const de_GetCalculatedAttributeForProfileCommand = async (output, context) => {
|
|
1618
1060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1619
|
-
return
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1620
1062
|
}
|
|
1621
1063
|
const contents = map({
|
|
1622
1064
|
$metadata: deserializeMetadata(output),
|
|
@@ -1631,40 +1073,9 @@ export const de_GetCalculatedAttributeForProfileCommand = async (output, context
|
|
|
1631
1073
|
Object.assign(contents, doc);
|
|
1632
1074
|
return contents;
|
|
1633
1075
|
};
|
|
1634
|
-
const de_GetCalculatedAttributeForProfileCommandError = async (output, context) => {
|
|
1635
|
-
const parsedOutput = {
|
|
1636
|
-
...output,
|
|
1637
|
-
body: await parseErrorBody(output.body, context),
|
|
1638
|
-
};
|
|
1639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
-
switch (errorCode) {
|
|
1641
|
-
case "AccessDeniedException":
|
|
1642
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1643
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "BadRequestException":
|
|
1645
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1646
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "InternalServerException":
|
|
1648
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1649
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "ResourceNotFoundException":
|
|
1651
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1652
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "ThrottlingException":
|
|
1654
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1656
|
-
default:
|
|
1657
|
-
const parsedBody = parsedOutput.body;
|
|
1658
|
-
return throwDefaultError({
|
|
1659
|
-
output,
|
|
1660
|
-
parsedBody,
|
|
1661
|
-
errorCode,
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
};
|
|
1665
1076
|
export const de_GetDomainCommand = async (output, context) => {
|
|
1666
1077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1667
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1668
1079
|
}
|
|
1669
1080
|
const contents = map({
|
|
1670
1081
|
$metadata: deserializeMetadata(output),
|
|
@@ -1685,40 +1096,9 @@ export const de_GetDomainCommand = async (output, context) => {
|
|
|
1685
1096
|
Object.assign(contents, doc);
|
|
1686
1097
|
return contents;
|
|
1687
1098
|
};
|
|
1688
|
-
const de_GetDomainCommandError = async (output, context) => {
|
|
1689
|
-
const parsedOutput = {
|
|
1690
|
-
...output,
|
|
1691
|
-
body: await parseErrorBody(output.body, context),
|
|
1692
|
-
};
|
|
1693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "AccessDeniedException":
|
|
1696
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1697
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "BadRequestException":
|
|
1699
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1700
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "InternalServerException":
|
|
1702
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1703
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ResourceNotFoundException":
|
|
1705
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1706
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ThrottlingException":
|
|
1708
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1709
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
1099
|
export const de_GetEventStreamCommand = async (output, context) => {
|
|
1720
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1721
|
-
return
|
|
1101
|
+
return de_CommandError(output, context);
|
|
1722
1102
|
}
|
|
1723
1103
|
const contents = map({
|
|
1724
1104
|
$metadata: deserializeMetadata(output),
|
|
@@ -1736,40 +1116,9 @@ export const de_GetEventStreamCommand = async (output, context) => {
|
|
|
1736
1116
|
Object.assign(contents, doc);
|
|
1737
1117
|
return contents;
|
|
1738
1118
|
};
|
|
1739
|
-
const de_GetEventStreamCommandError = async (output, context) => {
|
|
1740
|
-
const parsedOutput = {
|
|
1741
|
-
...output,
|
|
1742
|
-
body: await parseErrorBody(output.body, context),
|
|
1743
|
-
};
|
|
1744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
|
-
switch (errorCode) {
|
|
1746
|
-
case "AccessDeniedException":
|
|
1747
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1748
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "BadRequestException":
|
|
1750
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1751
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "InternalServerException":
|
|
1753
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1754
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "ResourceNotFoundException":
|
|
1756
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1757
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "ThrottlingException":
|
|
1759
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1760
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1761
|
-
default:
|
|
1762
|
-
const parsedBody = parsedOutput.body;
|
|
1763
|
-
return throwDefaultError({
|
|
1764
|
-
output,
|
|
1765
|
-
parsedBody,
|
|
1766
|
-
errorCode,
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
};
|
|
1770
1119
|
export const de_GetIdentityResolutionJobCommand = async (output, context) => {
|
|
1771
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1772
|
-
return
|
|
1121
|
+
return de_CommandError(output, context);
|
|
1773
1122
|
}
|
|
1774
1123
|
const contents = map({
|
|
1775
1124
|
$metadata: deserializeMetadata(output),
|
|
@@ -1791,40 +1140,9 @@ export const de_GetIdentityResolutionJobCommand = async (output, context) => {
|
|
|
1791
1140
|
Object.assign(contents, doc);
|
|
1792
1141
|
return contents;
|
|
1793
1142
|
};
|
|
1794
|
-
const de_GetIdentityResolutionJobCommandError = async (output, context) => {
|
|
1795
|
-
const parsedOutput = {
|
|
1796
|
-
...output,
|
|
1797
|
-
body: await parseErrorBody(output.body, context),
|
|
1798
|
-
};
|
|
1799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
|
-
switch (errorCode) {
|
|
1801
|
-
case "AccessDeniedException":
|
|
1802
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1803
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "BadRequestException":
|
|
1805
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1806
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "InternalServerException":
|
|
1808
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1809
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "ResourceNotFoundException":
|
|
1811
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1812
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "ThrottlingException":
|
|
1814
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1815
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1816
|
-
default:
|
|
1817
|
-
const parsedBody = parsedOutput.body;
|
|
1818
|
-
return throwDefaultError({
|
|
1819
|
-
output,
|
|
1820
|
-
parsedBody,
|
|
1821
|
-
errorCode,
|
|
1822
|
-
});
|
|
1823
|
-
}
|
|
1824
|
-
};
|
|
1825
1143
|
export const de_GetIntegrationCommand = async (output, context) => {
|
|
1826
1144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1827
|
-
return
|
|
1145
|
+
return de_CommandError(output, context);
|
|
1828
1146
|
}
|
|
1829
1147
|
const contents = map({
|
|
1830
1148
|
$metadata: deserializeMetadata(output),
|
|
@@ -1844,40 +1162,9 @@ export const de_GetIntegrationCommand = async (output, context) => {
|
|
|
1844
1162
|
Object.assign(contents, doc);
|
|
1845
1163
|
return contents;
|
|
1846
1164
|
};
|
|
1847
|
-
const de_GetIntegrationCommandError = async (output, context) => {
|
|
1848
|
-
const parsedOutput = {
|
|
1849
|
-
...output,
|
|
1850
|
-
body: await parseErrorBody(output.body, context),
|
|
1851
|
-
};
|
|
1852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
-
switch (errorCode) {
|
|
1854
|
-
case "AccessDeniedException":
|
|
1855
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1856
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "BadRequestException":
|
|
1858
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1859
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "InternalServerException":
|
|
1861
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ResourceNotFoundException":
|
|
1864
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1865
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ThrottlingException":
|
|
1867
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1868
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1869
|
-
default:
|
|
1870
|
-
const parsedBody = parsedOutput.body;
|
|
1871
|
-
return throwDefaultError({
|
|
1872
|
-
output,
|
|
1873
|
-
parsedBody,
|
|
1874
|
-
errorCode,
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
};
|
|
1878
1165
|
export const de_GetMatchesCommand = async (output, context) => {
|
|
1879
1166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1880
|
-
return
|
|
1167
|
+
return de_CommandError(output, context);
|
|
1881
1168
|
}
|
|
1882
1169
|
const contents = map({
|
|
1883
1170
|
$metadata: deserializeMetadata(output),
|
|
@@ -1892,40 +1179,9 @@ export const de_GetMatchesCommand = async (output, context) => {
|
|
|
1892
1179
|
Object.assign(contents, doc);
|
|
1893
1180
|
return contents;
|
|
1894
1181
|
};
|
|
1895
|
-
const de_GetMatchesCommandError = async (output, context) => {
|
|
1896
|
-
const parsedOutput = {
|
|
1897
|
-
...output,
|
|
1898
|
-
body: await parseErrorBody(output.body, context),
|
|
1899
|
-
};
|
|
1900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
|
-
switch (errorCode) {
|
|
1902
|
-
case "AccessDeniedException":
|
|
1903
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1904
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "BadRequestException":
|
|
1906
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1907
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "InternalServerException":
|
|
1909
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1910
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "ResourceNotFoundException":
|
|
1912
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1913
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ThrottlingException":
|
|
1915
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1916
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1917
|
-
default:
|
|
1918
|
-
const parsedBody = parsedOutput.body;
|
|
1919
|
-
return throwDefaultError({
|
|
1920
|
-
output,
|
|
1921
|
-
parsedBody,
|
|
1922
|
-
errorCode,
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
};
|
|
1926
1182
|
export const de_GetProfileObjectTypeCommand = async (output, context) => {
|
|
1927
1183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1928
|
-
return
|
|
1184
|
+
return de_CommandError(output, context);
|
|
1929
1185
|
}
|
|
1930
1186
|
const contents = map({
|
|
1931
1187
|
$metadata: deserializeMetadata(output),
|
|
@@ -1948,40 +1204,9 @@ export const de_GetProfileObjectTypeCommand = async (output, context) => {
|
|
|
1948
1204
|
Object.assign(contents, doc);
|
|
1949
1205
|
return contents;
|
|
1950
1206
|
};
|
|
1951
|
-
const de_GetProfileObjectTypeCommandError = async (output, context) => {
|
|
1952
|
-
const parsedOutput = {
|
|
1953
|
-
...output,
|
|
1954
|
-
body: await parseErrorBody(output.body, context),
|
|
1955
|
-
};
|
|
1956
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
|
-
switch (errorCode) {
|
|
1958
|
-
case "AccessDeniedException":
|
|
1959
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1960
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "BadRequestException":
|
|
1962
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1963
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "InternalServerException":
|
|
1965
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1966
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "ResourceNotFoundException":
|
|
1968
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ThrottlingException":
|
|
1971
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1972
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1973
|
-
default:
|
|
1974
|
-
const parsedBody = parsedOutput.body;
|
|
1975
|
-
return throwDefaultError({
|
|
1976
|
-
output,
|
|
1977
|
-
parsedBody,
|
|
1978
|
-
errorCode,
|
|
1979
|
-
});
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
1207
|
export const de_GetProfileObjectTypeTemplateCommand = async (output, context) => {
|
|
1983
1208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1984
|
-
return
|
|
1209
|
+
return de_CommandError(output, context);
|
|
1985
1210
|
}
|
|
1986
1211
|
const contents = map({
|
|
1987
1212
|
$metadata: deserializeMetadata(output),
|
|
@@ -1999,40 +1224,9 @@ export const de_GetProfileObjectTypeTemplateCommand = async (output, context) =>
|
|
|
1999
1224
|
Object.assign(contents, doc);
|
|
2000
1225
|
return contents;
|
|
2001
1226
|
};
|
|
2002
|
-
const de_GetProfileObjectTypeTemplateCommandError = async (output, context) => {
|
|
2003
|
-
const parsedOutput = {
|
|
2004
|
-
...output,
|
|
2005
|
-
body: await parseErrorBody(output.body, context),
|
|
2006
|
-
};
|
|
2007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
|
-
switch (errorCode) {
|
|
2009
|
-
case "AccessDeniedException":
|
|
2010
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "BadRequestException":
|
|
2013
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2014
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InternalServerException":
|
|
2016
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ResourceNotFoundException":
|
|
2019
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ThrottlingException":
|
|
2022
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2023
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2024
|
-
default:
|
|
2025
|
-
const parsedBody = parsedOutput.body;
|
|
2026
|
-
return throwDefaultError({
|
|
2027
|
-
output,
|
|
2028
|
-
parsedBody,
|
|
2029
|
-
errorCode,
|
|
2030
|
-
});
|
|
2031
|
-
}
|
|
2032
|
-
};
|
|
2033
1227
|
export const de_GetSimilarProfilesCommand = async (output, context) => {
|
|
2034
1228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2035
|
-
return
|
|
1229
|
+
return de_CommandError(output, context);
|
|
2036
1230
|
}
|
|
2037
1231
|
const contents = map({
|
|
2038
1232
|
$metadata: deserializeMetadata(output),
|
|
@@ -2049,40 +1243,9 @@ export const de_GetSimilarProfilesCommand = async (output, context) => {
|
|
|
2049
1243
|
Object.assign(contents, doc);
|
|
2050
1244
|
return contents;
|
|
2051
1245
|
};
|
|
2052
|
-
const de_GetSimilarProfilesCommandError = async (output, context) => {
|
|
2053
|
-
const parsedOutput = {
|
|
2054
|
-
...output,
|
|
2055
|
-
body: await parseErrorBody(output.body, context),
|
|
2056
|
-
};
|
|
2057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
|
-
switch (errorCode) {
|
|
2059
|
-
case "AccessDeniedException":
|
|
2060
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2061
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "BadRequestException":
|
|
2063
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2064
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "InternalServerException":
|
|
2066
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2067
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "ResourceNotFoundException":
|
|
2069
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2070
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ThrottlingException":
|
|
2072
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2073
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode,
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
};
|
|
2083
1246
|
export const de_GetWorkflowCommand = async (output, context) => {
|
|
2084
1247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
|
-
return
|
|
1248
|
+
return de_CommandError(output, context);
|
|
2086
1249
|
}
|
|
2087
1250
|
const contents = map({
|
|
2088
1251
|
$metadata: deserializeMetadata(output),
|
|
@@ -2101,40 +1264,9 @@ export const de_GetWorkflowCommand = async (output, context) => {
|
|
|
2101
1264
|
Object.assign(contents, doc);
|
|
2102
1265
|
return contents;
|
|
2103
1266
|
};
|
|
2104
|
-
const de_GetWorkflowCommandError = async (output, context) => {
|
|
2105
|
-
const parsedOutput = {
|
|
2106
|
-
...output,
|
|
2107
|
-
body: await parseErrorBody(output.body, context),
|
|
2108
|
-
};
|
|
2109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
|
-
switch (errorCode) {
|
|
2111
|
-
case "AccessDeniedException":
|
|
2112
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2113
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "BadRequestException":
|
|
2115
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2116
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "InternalServerException":
|
|
2118
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ResourceNotFoundException":
|
|
2121
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2122
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "ThrottlingException":
|
|
2124
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2125
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2126
|
-
default:
|
|
2127
|
-
const parsedBody = parsedOutput.body;
|
|
2128
|
-
return throwDefaultError({
|
|
2129
|
-
output,
|
|
2130
|
-
parsedBody,
|
|
2131
|
-
errorCode,
|
|
2132
|
-
});
|
|
2133
|
-
}
|
|
2134
|
-
};
|
|
2135
1267
|
export const de_GetWorkflowStepsCommand = async (output, context) => {
|
|
2136
1268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2137
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
2138
1270
|
}
|
|
2139
1271
|
const contents = map({
|
|
2140
1272
|
$metadata: deserializeMetadata(output),
|
|
@@ -2149,40 +1281,9 @@ export const de_GetWorkflowStepsCommand = async (output, context) => {
|
|
|
2149
1281
|
Object.assign(contents, doc);
|
|
2150
1282
|
return contents;
|
|
2151
1283
|
};
|
|
2152
|
-
const de_GetWorkflowStepsCommandError = async (output, context) => {
|
|
2153
|
-
const parsedOutput = {
|
|
2154
|
-
...output,
|
|
2155
|
-
body: await parseErrorBody(output.body, context),
|
|
2156
|
-
};
|
|
2157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
|
-
switch (errorCode) {
|
|
2159
|
-
case "AccessDeniedException":
|
|
2160
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2161
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "BadRequestException":
|
|
2163
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2164
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "InternalServerException":
|
|
2166
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2167
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "ResourceNotFoundException":
|
|
2169
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "ThrottlingException":
|
|
2172
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2173
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2174
|
-
default:
|
|
2175
|
-
const parsedBody = parsedOutput.body;
|
|
2176
|
-
return throwDefaultError({
|
|
2177
|
-
output,
|
|
2178
|
-
parsedBody,
|
|
2179
|
-
errorCode,
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
};
|
|
2183
1284
|
export const de_ListAccountIntegrationsCommand = async (output, context) => {
|
|
2184
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2185
|
-
return
|
|
1286
|
+
return de_CommandError(output, context);
|
|
2186
1287
|
}
|
|
2187
1288
|
const contents = map({
|
|
2188
1289
|
$metadata: deserializeMetadata(output),
|
|
@@ -2195,40 +1296,9 @@ export const de_ListAccountIntegrationsCommand = async (output, context) => {
|
|
|
2195
1296
|
Object.assign(contents, doc);
|
|
2196
1297
|
return contents;
|
|
2197
1298
|
};
|
|
2198
|
-
const de_ListAccountIntegrationsCommandError = async (output, context) => {
|
|
2199
|
-
const parsedOutput = {
|
|
2200
|
-
...output,
|
|
2201
|
-
body: await parseErrorBody(output.body, context),
|
|
2202
|
-
};
|
|
2203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
|
-
switch (errorCode) {
|
|
2205
|
-
case "AccessDeniedException":
|
|
2206
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "BadRequestException":
|
|
2209
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2210
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "InternalServerException":
|
|
2212
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2213
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "ResourceNotFoundException":
|
|
2215
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "ThrottlingException":
|
|
2218
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2219
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2220
|
-
default:
|
|
2221
|
-
const parsedBody = parsedOutput.body;
|
|
2222
|
-
return throwDefaultError({
|
|
2223
|
-
output,
|
|
2224
|
-
parsedBody,
|
|
2225
|
-
errorCode,
|
|
2226
|
-
});
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
1299
|
export const de_ListCalculatedAttributeDefinitionsCommand = async (output, context) => {
|
|
2230
1300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
|
-
return
|
|
1301
|
+
return de_CommandError(output, context);
|
|
2232
1302
|
}
|
|
2233
1303
|
const contents = map({
|
|
2234
1304
|
$metadata: deserializeMetadata(output),
|
|
@@ -2241,40 +1311,9 @@ export const de_ListCalculatedAttributeDefinitionsCommand = async (output, conte
|
|
|
2241
1311
|
Object.assign(contents, doc);
|
|
2242
1312
|
return contents;
|
|
2243
1313
|
};
|
|
2244
|
-
const de_ListCalculatedAttributeDefinitionsCommandError = async (output, context) => {
|
|
2245
|
-
const parsedOutput = {
|
|
2246
|
-
...output,
|
|
2247
|
-
body: await parseErrorBody(output.body, context),
|
|
2248
|
-
};
|
|
2249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
|
-
switch (errorCode) {
|
|
2251
|
-
case "AccessDeniedException":
|
|
2252
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2253
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "BadRequestException":
|
|
2255
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2256
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "InternalServerException":
|
|
2258
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2259
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "ResourceNotFoundException":
|
|
2261
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2262
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "ThrottlingException":
|
|
2264
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2265
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2266
|
-
default:
|
|
2267
|
-
const parsedBody = parsedOutput.body;
|
|
2268
|
-
return throwDefaultError({
|
|
2269
|
-
output,
|
|
2270
|
-
parsedBody,
|
|
2271
|
-
errorCode,
|
|
2272
|
-
});
|
|
2273
|
-
}
|
|
2274
|
-
};
|
|
2275
1314
|
export const de_ListCalculatedAttributesForProfileCommand = async (output, context) => {
|
|
2276
1315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2277
|
-
return
|
|
1316
|
+
return de_CommandError(output, context);
|
|
2278
1317
|
}
|
|
2279
1318
|
const contents = map({
|
|
2280
1319
|
$metadata: deserializeMetadata(output),
|
|
@@ -2287,40 +1326,9 @@ export const de_ListCalculatedAttributesForProfileCommand = async (output, conte
|
|
|
2287
1326
|
Object.assign(contents, doc);
|
|
2288
1327
|
return contents;
|
|
2289
1328
|
};
|
|
2290
|
-
const de_ListCalculatedAttributesForProfileCommandError = async (output, context) => {
|
|
2291
|
-
const parsedOutput = {
|
|
2292
|
-
...output,
|
|
2293
|
-
body: await parseErrorBody(output.body, context),
|
|
2294
|
-
};
|
|
2295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
|
-
switch (errorCode) {
|
|
2297
|
-
case "AccessDeniedException":
|
|
2298
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2299
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "BadRequestException":
|
|
2301
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2302
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "InternalServerException":
|
|
2304
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ResourceNotFoundException":
|
|
2307
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ThrottlingException":
|
|
2310
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2311
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2312
|
-
default:
|
|
2313
|
-
const parsedBody = parsedOutput.body;
|
|
2314
|
-
return throwDefaultError({
|
|
2315
|
-
output,
|
|
2316
|
-
parsedBody,
|
|
2317
|
-
errorCode,
|
|
2318
|
-
});
|
|
2319
|
-
}
|
|
2320
|
-
};
|
|
2321
1329
|
export const de_ListDomainsCommand = async (output, context) => {
|
|
2322
1330
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2323
|
-
return
|
|
1331
|
+
return de_CommandError(output, context);
|
|
2324
1332
|
}
|
|
2325
1333
|
const contents = map({
|
|
2326
1334
|
$metadata: deserializeMetadata(output),
|
|
@@ -2333,40 +1341,9 @@ export const de_ListDomainsCommand = async (output, context) => {
|
|
|
2333
1341
|
Object.assign(contents, doc);
|
|
2334
1342
|
return contents;
|
|
2335
1343
|
};
|
|
2336
|
-
const de_ListDomainsCommandError = async (output, context) => {
|
|
2337
|
-
const parsedOutput = {
|
|
2338
|
-
...output,
|
|
2339
|
-
body: await parseErrorBody(output.body, context),
|
|
2340
|
-
};
|
|
2341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2342
|
-
switch (errorCode) {
|
|
2343
|
-
case "AccessDeniedException":
|
|
2344
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2345
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "BadRequestException":
|
|
2347
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2348
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "InternalServerException":
|
|
2350
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2351
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "ResourceNotFoundException":
|
|
2353
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2354
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "ThrottlingException":
|
|
2356
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2357
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2358
|
-
default:
|
|
2359
|
-
const parsedBody = parsedOutput.body;
|
|
2360
|
-
return throwDefaultError({
|
|
2361
|
-
output,
|
|
2362
|
-
parsedBody,
|
|
2363
|
-
errorCode,
|
|
2364
|
-
});
|
|
2365
|
-
}
|
|
2366
|
-
};
|
|
2367
1344
|
export const de_ListEventStreamsCommand = async (output, context) => {
|
|
2368
1345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2369
|
-
return
|
|
1346
|
+
return de_CommandError(output, context);
|
|
2370
1347
|
}
|
|
2371
1348
|
const contents = map({
|
|
2372
1349
|
$metadata: deserializeMetadata(output),
|
|
@@ -2379,40 +1356,9 @@ export const de_ListEventStreamsCommand = async (output, context) => {
|
|
|
2379
1356
|
Object.assign(contents, doc);
|
|
2380
1357
|
return contents;
|
|
2381
1358
|
};
|
|
2382
|
-
const de_ListEventStreamsCommandError = async (output, context) => {
|
|
2383
|
-
const parsedOutput = {
|
|
2384
|
-
...output,
|
|
2385
|
-
body: await parseErrorBody(output.body, context),
|
|
2386
|
-
};
|
|
2387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
-
switch (errorCode) {
|
|
2389
|
-
case "AccessDeniedException":
|
|
2390
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "BadRequestException":
|
|
2393
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2394
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "InternalServerException":
|
|
2396
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2397
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "ResourceNotFoundException":
|
|
2399
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2401
|
-
case "ThrottlingException":
|
|
2402
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2403
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2404
|
-
default:
|
|
2405
|
-
const parsedBody = parsedOutput.body;
|
|
2406
|
-
return throwDefaultError({
|
|
2407
|
-
output,
|
|
2408
|
-
parsedBody,
|
|
2409
|
-
errorCode,
|
|
2410
|
-
});
|
|
2411
|
-
}
|
|
2412
|
-
};
|
|
2413
1359
|
export const de_ListIdentityResolutionJobsCommand = async (output, context) => {
|
|
2414
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2415
|
-
return
|
|
1361
|
+
return de_CommandError(output, context);
|
|
2416
1362
|
}
|
|
2417
1363
|
const contents = map({
|
|
2418
1364
|
$metadata: deserializeMetadata(output),
|
|
@@ -2425,40 +1371,9 @@ export const de_ListIdentityResolutionJobsCommand = async (output, context) => {
|
|
|
2425
1371
|
Object.assign(contents, doc);
|
|
2426
1372
|
return contents;
|
|
2427
1373
|
};
|
|
2428
|
-
const de_ListIdentityResolutionJobsCommandError = async (output, context) => {
|
|
2429
|
-
const parsedOutput = {
|
|
2430
|
-
...output,
|
|
2431
|
-
body: await parseErrorBody(output.body, context),
|
|
2432
|
-
};
|
|
2433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2434
|
-
switch (errorCode) {
|
|
2435
|
-
case "AccessDeniedException":
|
|
2436
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2437
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "BadRequestException":
|
|
2439
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2440
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "InternalServerException":
|
|
2442
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2443
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "ResourceNotFoundException":
|
|
2445
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2446
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "ThrottlingException":
|
|
2448
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2449
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2450
|
-
default:
|
|
2451
|
-
const parsedBody = parsedOutput.body;
|
|
2452
|
-
return throwDefaultError({
|
|
2453
|
-
output,
|
|
2454
|
-
parsedBody,
|
|
2455
|
-
errorCode,
|
|
2456
|
-
});
|
|
2457
|
-
}
|
|
2458
|
-
};
|
|
2459
1374
|
export const de_ListIntegrationsCommand = async (output, context) => {
|
|
2460
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2461
|
-
return
|
|
1376
|
+
return de_CommandError(output, context);
|
|
2462
1377
|
}
|
|
2463
1378
|
const contents = map({
|
|
2464
1379
|
$metadata: deserializeMetadata(output),
|
|
@@ -2471,40 +1386,9 @@ export const de_ListIntegrationsCommand = async (output, context) => {
|
|
|
2471
1386
|
Object.assign(contents, doc);
|
|
2472
1387
|
return contents;
|
|
2473
1388
|
};
|
|
2474
|
-
const de_ListIntegrationsCommandError = async (output, context) => {
|
|
2475
|
-
const parsedOutput = {
|
|
2476
|
-
...output,
|
|
2477
|
-
body: await parseErrorBody(output.body, context),
|
|
2478
|
-
};
|
|
2479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2480
|
-
switch (errorCode) {
|
|
2481
|
-
case "AccessDeniedException":
|
|
2482
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2483
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "BadRequestException":
|
|
2485
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2486
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "InternalServerException":
|
|
2488
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2489
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "ResourceNotFoundException":
|
|
2491
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2492
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "ThrottlingException":
|
|
2494
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2495
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2496
|
-
default:
|
|
2497
|
-
const parsedBody = parsedOutput.body;
|
|
2498
|
-
return throwDefaultError({
|
|
2499
|
-
output,
|
|
2500
|
-
parsedBody,
|
|
2501
|
-
errorCode,
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
};
|
|
2505
1389
|
export const de_ListProfileObjectsCommand = async (output, context) => {
|
|
2506
1390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2507
|
-
return
|
|
1391
|
+
return de_CommandError(output, context);
|
|
2508
1392
|
}
|
|
2509
1393
|
const contents = map({
|
|
2510
1394
|
$metadata: deserializeMetadata(output),
|
|
@@ -2517,40 +1401,9 @@ export const de_ListProfileObjectsCommand = async (output, context) => {
|
|
|
2517
1401
|
Object.assign(contents, doc);
|
|
2518
1402
|
return contents;
|
|
2519
1403
|
};
|
|
2520
|
-
const de_ListProfileObjectsCommandError = async (output, context) => {
|
|
2521
|
-
const parsedOutput = {
|
|
2522
|
-
...output,
|
|
2523
|
-
body: await parseErrorBody(output.body, context),
|
|
2524
|
-
};
|
|
2525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
-
switch (errorCode) {
|
|
2527
|
-
case "AccessDeniedException":
|
|
2528
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2529
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "BadRequestException":
|
|
2531
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2532
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "InternalServerException":
|
|
2534
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2535
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ResourceNotFoundException":
|
|
2537
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2538
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "ThrottlingException":
|
|
2540
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2541
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2542
|
-
default:
|
|
2543
|
-
const parsedBody = parsedOutput.body;
|
|
2544
|
-
return throwDefaultError({
|
|
2545
|
-
output,
|
|
2546
|
-
parsedBody,
|
|
2547
|
-
errorCode,
|
|
2548
|
-
});
|
|
2549
|
-
}
|
|
2550
|
-
};
|
|
2551
1404
|
export const de_ListProfileObjectTypesCommand = async (output, context) => {
|
|
2552
1405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2553
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
2554
1407
|
}
|
|
2555
1408
|
const contents = map({
|
|
2556
1409
|
$metadata: deserializeMetadata(output),
|
|
@@ -2563,40 +1416,9 @@ export const de_ListProfileObjectTypesCommand = async (output, context) => {
|
|
|
2563
1416
|
Object.assign(contents, doc);
|
|
2564
1417
|
return contents;
|
|
2565
1418
|
};
|
|
2566
|
-
const de_ListProfileObjectTypesCommandError = async (output, context) => {
|
|
2567
|
-
const parsedOutput = {
|
|
2568
|
-
...output,
|
|
2569
|
-
body: await parseErrorBody(output.body, context),
|
|
2570
|
-
};
|
|
2571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
|
-
switch (errorCode) {
|
|
2573
|
-
case "AccessDeniedException":
|
|
2574
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2575
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "BadRequestException":
|
|
2577
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2578
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "InternalServerException":
|
|
2580
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2581
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "ResourceNotFoundException":
|
|
2583
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "ThrottlingException":
|
|
2586
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2588
|
-
default:
|
|
2589
|
-
const parsedBody = parsedOutput.body;
|
|
2590
|
-
return throwDefaultError({
|
|
2591
|
-
output,
|
|
2592
|
-
parsedBody,
|
|
2593
|
-
errorCode,
|
|
2594
|
-
});
|
|
2595
|
-
}
|
|
2596
|
-
};
|
|
2597
1419
|
export const de_ListProfileObjectTypeTemplatesCommand = async (output, context) => {
|
|
2598
1420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2599
|
-
return
|
|
1421
|
+
return de_CommandError(output, context);
|
|
2600
1422
|
}
|
|
2601
1423
|
const contents = map({
|
|
2602
1424
|
$metadata: deserializeMetadata(output),
|
|
@@ -2609,40 +1431,9 @@ export const de_ListProfileObjectTypeTemplatesCommand = async (output, context)
|
|
|
2609
1431
|
Object.assign(contents, doc);
|
|
2610
1432
|
return contents;
|
|
2611
1433
|
};
|
|
2612
|
-
const de_ListProfileObjectTypeTemplatesCommandError = async (output, context) => {
|
|
2613
|
-
const parsedOutput = {
|
|
2614
|
-
...output,
|
|
2615
|
-
body: await parseErrorBody(output.body, context),
|
|
2616
|
-
};
|
|
2617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
|
-
switch (errorCode) {
|
|
2619
|
-
case "AccessDeniedException":
|
|
2620
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2621
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "BadRequestException":
|
|
2623
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2624
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "InternalServerException":
|
|
2626
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2627
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ResourceNotFoundException":
|
|
2629
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ThrottlingException":
|
|
2632
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2633
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2634
|
-
default:
|
|
2635
|
-
const parsedBody = parsedOutput.body;
|
|
2636
|
-
return throwDefaultError({
|
|
2637
|
-
output,
|
|
2638
|
-
parsedBody,
|
|
2639
|
-
errorCode,
|
|
2640
|
-
});
|
|
2641
|
-
}
|
|
2642
|
-
};
|
|
2643
1434
|
export const de_ListRuleBasedMatchesCommand = async (output, context) => {
|
|
2644
1435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2645
|
-
return
|
|
1436
|
+
return de_CommandError(output, context);
|
|
2646
1437
|
}
|
|
2647
1438
|
const contents = map({
|
|
2648
1439
|
$metadata: deserializeMetadata(output),
|
|
@@ -2655,40 +1446,9 @@ export const de_ListRuleBasedMatchesCommand = async (output, context) => {
|
|
|
2655
1446
|
Object.assign(contents, doc);
|
|
2656
1447
|
return contents;
|
|
2657
1448
|
};
|
|
2658
|
-
const de_ListRuleBasedMatchesCommandError = async (output, context) => {
|
|
2659
|
-
const parsedOutput = {
|
|
2660
|
-
...output,
|
|
2661
|
-
body: await parseErrorBody(output.body, context),
|
|
2662
|
-
};
|
|
2663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2664
|
-
switch (errorCode) {
|
|
2665
|
-
case "AccessDeniedException":
|
|
2666
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "BadRequestException":
|
|
2669
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2670
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "InternalServerException":
|
|
2672
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ResourceNotFoundException":
|
|
2675
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ThrottlingException":
|
|
2678
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2679
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode,
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
};
|
|
2689
1449
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2690
1450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
1451
|
+
return de_CommandError(output, context);
|
|
2692
1452
|
}
|
|
2693
1453
|
const contents = map({
|
|
2694
1454
|
$metadata: deserializeMetadata(output),
|
|
@@ -2700,34 +1460,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2700
1460
|
Object.assign(contents, doc);
|
|
2701
1461
|
return contents;
|
|
2702
1462
|
};
|
|
2703
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2704
|
-
const parsedOutput = {
|
|
2705
|
-
...output,
|
|
2706
|
-
body: await parseErrorBody(output.body, context),
|
|
2707
|
-
};
|
|
2708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
|
-
switch (errorCode) {
|
|
2710
|
-
case "BadRequestException":
|
|
2711
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2712
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "InternalServerException":
|
|
2714
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2715
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "ResourceNotFoundException":
|
|
2717
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2719
|
-
default:
|
|
2720
|
-
const parsedBody = parsedOutput.body;
|
|
2721
|
-
return throwDefaultError({
|
|
2722
|
-
output,
|
|
2723
|
-
parsedBody,
|
|
2724
|
-
errorCode,
|
|
2725
|
-
});
|
|
2726
|
-
}
|
|
2727
|
-
};
|
|
2728
1463
|
export const de_ListWorkflowsCommand = async (output, context) => {
|
|
2729
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2730
|
-
return
|
|
1465
|
+
return de_CommandError(output, context);
|
|
2731
1466
|
}
|
|
2732
1467
|
const contents = map({
|
|
2733
1468
|
$metadata: deserializeMetadata(output),
|
|
@@ -2738,42 +1473,11 @@ export const de_ListWorkflowsCommand = async (output, context) => {
|
|
|
2738
1473
|
NextToken: __expectString,
|
|
2739
1474
|
});
|
|
2740
1475
|
Object.assign(contents, doc);
|
|
2741
|
-
return contents;
|
|
2742
|
-
};
|
|
2743
|
-
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
2744
|
-
const parsedOutput = {
|
|
2745
|
-
...output,
|
|
2746
|
-
body: await parseErrorBody(output.body, context),
|
|
2747
|
-
};
|
|
2748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2749
|
-
switch (errorCode) {
|
|
2750
|
-
case "AccessDeniedException":
|
|
2751
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "BadRequestException":
|
|
2754
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2755
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "InternalServerException":
|
|
2757
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2758
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "ResourceNotFoundException":
|
|
2760
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2761
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ThrottlingException":
|
|
2763
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2764
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2765
|
-
default:
|
|
2766
|
-
const parsedBody = parsedOutput.body;
|
|
2767
|
-
return throwDefaultError({
|
|
2768
|
-
output,
|
|
2769
|
-
parsedBody,
|
|
2770
|
-
errorCode,
|
|
2771
|
-
});
|
|
2772
|
-
}
|
|
1476
|
+
return contents;
|
|
2773
1477
|
};
|
|
2774
1478
|
export const de_MergeProfilesCommand = async (output, context) => {
|
|
2775
1479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2776
|
-
return
|
|
1480
|
+
return de_CommandError(output, context);
|
|
2777
1481
|
}
|
|
2778
1482
|
const contents = map({
|
|
2779
1483
|
$metadata: deserializeMetadata(output),
|
|
@@ -2785,37 +1489,9 @@ export const de_MergeProfilesCommand = async (output, context) => {
|
|
|
2785
1489
|
Object.assign(contents, doc);
|
|
2786
1490
|
return contents;
|
|
2787
1491
|
};
|
|
2788
|
-
const de_MergeProfilesCommandError = async (output, context) => {
|
|
2789
|
-
const parsedOutput = {
|
|
2790
|
-
...output,
|
|
2791
|
-
body: await parseErrorBody(output.body, context),
|
|
2792
|
-
};
|
|
2793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
-
switch (errorCode) {
|
|
2795
|
-
case "BadRequestException":
|
|
2796
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2797
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "InternalServerException":
|
|
2799
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ResourceNotFoundException":
|
|
2802
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ThrottlingException":
|
|
2805
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2807
|
-
default:
|
|
2808
|
-
const parsedBody = parsedOutput.body;
|
|
2809
|
-
return throwDefaultError({
|
|
2810
|
-
output,
|
|
2811
|
-
parsedBody,
|
|
2812
|
-
errorCode,
|
|
2813
|
-
});
|
|
2814
|
-
}
|
|
2815
|
-
};
|
|
2816
1492
|
export const de_PutIntegrationCommand = async (output, context) => {
|
|
2817
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2818
|
-
return
|
|
1494
|
+
return de_CommandError(output, context);
|
|
2819
1495
|
}
|
|
2820
1496
|
const contents = map({
|
|
2821
1497
|
$metadata: deserializeMetadata(output),
|
|
@@ -2835,40 +1511,9 @@ export const de_PutIntegrationCommand = async (output, context) => {
|
|
|
2835
1511
|
Object.assign(contents, doc);
|
|
2836
1512
|
return contents;
|
|
2837
1513
|
};
|
|
2838
|
-
const de_PutIntegrationCommandError = async (output, context) => {
|
|
2839
|
-
const parsedOutput = {
|
|
2840
|
-
...output,
|
|
2841
|
-
body: await parseErrorBody(output.body, context),
|
|
2842
|
-
};
|
|
2843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
-
switch (errorCode) {
|
|
2845
|
-
case "AccessDeniedException":
|
|
2846
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2847
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "BadRequestException":
|
|
2849
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2850
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "InternalServerException":
|
|
2852
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2853
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ResourceNotFoundException":
|
|
2855
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2856
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "ThrottlingException":
|
|
2858
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2859
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2860
|
-
default:
|
|
2861
|
-
const parsedBody = parsedOutput.body;
|
|
2862
|
-
return throwDefaultError({
|
|
2863
|
-
output,
|
|
2864
|
-
parsedBody,
|
|
2865
|
-
errorCode,
|
|
2866
|
-
});
|
|
2867
|
-
}
|
|
2868
|
-
};
|
|
2869
1514
|
export const de_PutProfileObjectCommand = async (output, context) => {
|
|
2870
1515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2871
|
-
return
|
|
1516
|
+
return de_CommandError(output, context);
|
|
2872
1517
|
}
|
|
2873
1518
|
const contents = map({
|
|
2874
1519
|
$metadata: deserializeMetadata(output),
|
|
@@ -2880,40 +1525,9 @@ export const de_PutProfileObjectCommand = async (output, context) => {
|
|
|
2880
1525
|
Object.assign(contents, doc);
|
|
2881
1526
|
return contents;
|
|
2882
1527
|
};
|
|
2883
|
-
const de_PutProfileObjectCommandError = async (output, context) => {
|
|
2884
|
-
const parsedOutput = {
|
|
2885
|
-
...output,
|
|
2886
|
-
body: await parseErrorBody(output.body, context),
|
|
2887
|
-
};
|
|
2888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
|
-
switch (errorCode) {
|
|
2890
|
-
case "AccessDeniedException":
|
|
2891
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "BadRequestException":
|
|
2894
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2895
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "InternalServerException":
|
|
2897
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2898
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ResourceNotFoundException":
|
|
2900
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2901
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ThrottlingException":
|
|
2903
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2904
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2905
|
-
default:
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody,
|
|
2910
|
-
errorCode,
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
};
|
|
2914
1528
|
export const de_PutProfileObjectTypeCommand = async (output, context) => {
|
|
2915
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2916
|
-
return
|
|
1530
|
+
return de_CommandError(output, context);
|
|
2917
1531
|
}
|
|
2918
1532
|
const contents = map({
|
|
2919
1533
|
$metadata: deserializeMetadata(output),
|
|
@@ -2936,40 +1550,9 @@ export const de_PutProfileObjectTypeCommand = async (output, context) => {
|
|
|
2936
1550
|
Object.assign(contents, doc);
|
|
2937
1551
|
return contents;
|
|
2938
1552
|
};
|
|
2939
|
-
const de_PutProfileObjectTypeCommandError = async (output, context) => {
|
|
2940
|
-
const parsedOutput = {
|
|
2941
|
-
...output,
|
|
2942
|
-
body: await parseErrorBody(output.body, context),
|
|
2943
|
-
};
|
|
2944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2945
|
-
switch (errorCode) {
|
|
2946
|
-
case "AccessDeniedException":
|
|
2947
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2948
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2949
|
-
case "BadRequestException":
|
|
2950
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2951
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2952
|
-
case "InternalServerException":
|
|
2953
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2954
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2955
|
-
case "ResourceNotFoundException":
|
|
2956
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2957
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2958
|
-
case "ThrottlingException":
|
|
2959
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2960
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2961
|
-
default:
|
|
2962
|
-
const parsedBody = parsedOutput.body;
|
|
2963
|
-
return throwDefaultError({
|
|
2964
|
-
output,
|
|
2965
|
-
parsedBody,
|
|
2966
|
-
errorCode,
|
|
2967
|
-
});
|
|
2968
|
-
}
|
|
2969
|
-
};
|
|
2970
1553
|
export const de_SearchProfilesCommand = async (output, context) => {
|
|
2971
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2972
|
-
return
|
|
1555
|
+
return de_CommandError(output, context);
|
|
2973
1556
|
}
|
|
2974
1557
|
const contents = map({
|
|
2975
1558
|
$metadata: deserializeMetadata(output),
|
|
@@ -2982,40 +1565,9 @@ export const de_SearchProfilesCommand = async (output, context) => {
|
|
|
2982
1565
|
Object.assign(contents, doc);
|
|
2983
1566
|
return contents;
|
|
2984
1567
|
};
|
|
2985
|
-
const de_SearchProfilesCommandError = async (output, context) => {
|
|
2986
|
-
const parsedOutput = {
|
|
2987
|
-
...output,
|
|
2988
|
-
body: await parseErrorBody(output.body, context),
|
|
2989
|
-
};
|
|
2990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
|
-
switch (errorCode) {
|
|
2992
|
-
case "AccessDeniedException":
|
|
2993
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2994
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "BadRequestException":
|
|
2996
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2997
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "InternalServerException":
|
|
2999
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
3000
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "ResourceNotFoundException":
|
|
3002
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
3003
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "ThrottlingException":
|
|
3005
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
3006
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3007
|
-
default:
|
|
3008
|
-
const parsedBody = parsedOutput.body;
|
|
3009
|
-
return throwDefaultError({
|
|
3010
|
-
output,
|
|
3011
|
-
parsedBody,
|
|
3012
|
-
errorCode,
|
|
3013
|
-
});
|
|
3014
|
-
}
|
|
3015
|
-
};
|
|
3016
1568
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3017
1569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3018
|
-
return
|
|
1570
|
+
return de_CommandError(output, context);
|
|
3019
1571
|
}
|
|
3020
1572
|
const contents = map({
|
|
3021
1573
|
$metadata: deserializeMetadata(output),
|
|
@@ -3023,34 +1575,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3023
1575
|
await collectBody(output.body, context);
|
|
3024
1576
|
return contents;
|
|
3025
1577
|
};
|
|
3026
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3027
|
-
const parsedOutput = {
|
|
3028
|
-
...output,
|
|
3029
|
-
body: await parseErrorBody(output.body, context),
|
|
3030
|
-
};
|
|
3031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3032
|
-
switch (errorCode) {
|
|
3033
|
-
case "BadRequestException":
|
|
3034
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
3035
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "InternalServerException":
|
|
3037
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
3038
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "ResourceNotFoundException":
|
|
3040
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
3041
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3042
|
-
default:
|
|
3043
|
-
const parsedBody = parsedOutput.body;
|
|
3044
|
-
return throwDefaultError({
|
|
3045
|
-
output,
|
|
3046
|
-
parsedBody,
|
|
3047
|
-
errorCode,
|
|
3048
|
-
});
|
|
3049
|
-
}
|
|
3050
|
-
};
|
|
3051
1578
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3052
1579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3053
|
-
return
|
|
1580
|
+
return de_CommandError(output, context);
|
|
3054
1581
|
}
|
|
3055
1582
|
const contents = map({
|
|
3056
1583
|
$metadata: deserializeMetadata(output),
|
|
@@ -3058,34 +1585,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3058
1585
|
await collectBody(output.body, context);
|
|
3059
1586
|
return contents;
|
|
3060
1587
|
};
|
|
3061
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3062
|
-
const parsedOutput = {
|
|
3063
|
-
...output,
|
|
3064
|
-
body: await parseErrorBody(output.body, context),
|
|
3065
|
-
};
|
|
3066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
|
-
switch (errorCode) {
|
|
3068
|
-
case "BadRequestException":
|
|
3069
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
3070
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3071
|
-
case "InternalServerException":
|
|
3072
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
3073
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "ResourceNotFoundException":
|
|
3075
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
3076
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3077
|
-
default:
|
|
3078
|
-
const parsedBody = parsedOutput.body;
|
|
3079
|
-
return throwDefaultError({
|
|
3080
|
-
output,
|
|
3081
|
-
parsedBody,
|
|
3082
|
-
errorCode,
|
|
3083
|
-
});
|
|
3084
|
-
}
|
|
3085
|
-
};
|
|
3086
1588
|
export const de_UpdateCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
3087
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3088
|
-
return
|
|
1590
|
+
return de_CommandError(output, context);
|
|
3089
1591
|
}
|
|
3090
1592
|
const contents = map({
|
|
3091
1593
|
$metadata: deserializeMetadata(output),
|
|
@@ -3105,40 +1607,9 @@ export const de_UpdateCalculatedAttributeDefinitionCommand = async (output, cont
|
|
|
3105
1607
|
Object.assign(contents, doc);
|
|
3106
1608
|
return contents;
|
|
3107
1609
|
};
|
|
3108
|
-
const de_UpdateCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
3109
|
-
const parsedOutput = {
|
|
3110
|
-
...output,
|
|
3111
|
-
body: await parseErrorBody(output.body, context),
|
|
3112
|
-
};
|
|
3113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3114
|
-
switch (errorCode) {
|
|
3115
|
-
case "AccessDeniedException":
|
|
3116
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
3117
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3118
|
-
case "BadRequestException":
|
|
3119
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
3120
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3121
|
-
case "InternalServerException":
|
|
3122
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
3123
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3124
|
-
case "ResourceNotFoundException":
|
|
3125
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
3126
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3127
|
-
case "ThrottlingException":
|
|
3128
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
3129
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3130
|
-
default:
|
|
3131
|
-
const parsedBody = parsedOutput.body;
|
|
3132
|
-
return throwDefaultError({
|
|
3133
|
-
output,
|
|
3134
|
-
parsedBody,
|
|
3135
|
-
errorCode,
|
|
3136
|
-
});
|
|
3137
|
-
}
|
|
3138
|
-
};
|
|
3139
1610
|
export const de_UpdateDomainCommand = async (output, context) => {
|
|
3140
1611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3141
|
-
return
|
|
1612
|
+
return de_CommandError(output, context);
|
|
3142
1613
|
}
|
|
3143
1614
|
const contents = map({
|
|
3144
1615
|
$metadata: deserializeMetadata(output),
|
|
@@ -3158,40 +1629,9 @@ export const de_UpdateDomainCommand = async (output, context) => {
|
|
|
3158
1629
|
Object.assign(contents, doc);
|
|
3159
1630
|
return contents;
|
|
3160
1631
|
};
|
|
3161
|
-
const de_UpdateDomainCommandError = async (output, context) => {
|
|
3162
|
-
const parsedOutput = {
|
|
3163
|
-
...output,
|
|
3164
|
-
body: await parseErrorBody(output.body, context),
|
|
3165
|
-
};
|
|
3166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3167
|
-
switch (errorCode) {
|
|
3168
|
-
case "AccessDeniedException":
|
|
3169
|
-
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
3170
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "BadRequestException":
|
|
3172
|
-
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
3173
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "InternalServerException":
|
|
3175
|
-
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
3176
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "ResourceNotFoundException":
|
|
3178
|
-
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
3179
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "ThrottlingException":
|
|
3181
|
-
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
3182
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3183
|
-
default:
|
|
3184
|
-
const parsedBody = parsedOutput.body;
|
|
3185
|
-
return throwDefaultError({
|
|
3186
|
-
output,
|
|
3187
|
-
parsedBody,
|
|
3188
|
-
errorCode,
|
|
3189
|
-
});
|
|
3190
|
-
}
|
|
3191
|
-
};
|
|
3192
1632
|
export const de_UpdateProfileCommand = async (output, context) => {
|
|
3193
1633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3194
|
-
return
|
|
1634
|
+
return de_CommandError(output, context);
|
|
3195
1635
|
}
|
|
3196
1636
|
const contents = map({
|
|
3197
1637
|
$metadata: deserializeMetadata(output),
|
|
@@ -3203,7 +1643,7 @@ export const de_UpdateProfileCommand = async (output, context) => {
|
|
|
3203
1643
|
Object.assign(contents, doc);
|
|
3204
1644
|
return contents;
|
|
3205
1645
|
};
|
|
3206
|
-
const
|
|
1646
|
+
const de_CommandError = async (output, context) => {
|
|
3207
1647
|
const parsedOutput = {
|
|
3208
1648
|
...output,
|
|
3209
1649
|
body: await parseErrorBody(output.body, context),
|