@aws-sdk/client-redshift-serverless 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +108 -1635
- package/dist-es/protocols/Aws_json1_1.js +82 -1609
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -859,7 +859,7 @@ var se_UpdateWorkgroupCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
859
859
|
}, "se_UpdateWorkgroupCommand");
|
|
860
860
|
var de_ConvertRecoveryPointToSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
861
861
|
if (output.statusCode >= 300) {
|
|
862
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
863
863
|
}
|
|
864
864
|
const data = await parseBody(output.body, context);
|
|
865
865
|
let contents = {};
|
|
@@ -870,43 +870,9 @@ var de_ConvertRecoveryPointToSnapshotCommand = /* @__PURE__ */ __name(async (out
|
|
|
870
870
|
};
|
|
871
871
|
return response;
|
|
872
872
|
}, "de_ConvertRecoveryPointToSnapshotCommand");
|
|
873
|
-
var de_ConvertRecoveryPointToSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
874
|
-
const parsedOutput = {
|
|
875
|
-
...output,
|
|
876
|
-
body: await parseErrorBody(output.body, context)
|
|
877
|
-
};
|
|
878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
-
switch (errorCode) {
|
|
880
|
-
case "ConflictException":
|
|
881
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
882
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
883
|
-
case "InternalServerException":
|
|
884
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
885
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ResourceNotFoundException":
|
|
887
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
888
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ServiceQuotaExceededException":
|
|
890
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
891
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
892
|
-
case "TooManyTagsException":
|
|
893
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
894
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
895
|
-
case "ValidationException":
|
|
896
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
897
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
898
|
-
default:
|
|
899
|
-
const parsedBody = parsedOutput.body;
|
|
900
|
-
return throwDefaultError({
|
|
901
|
-
output,
|
|
902
|
-
parsedBody,
|
|
903
|
-
errorCode
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
}, "de_ConvertRecoveryPointToSnapshotCommandError");
|
|
907
873
|
var de_CreateCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
908
874
|
if (output.statusCode >= 300) {
|
|
909
|
-
return
|
|
875
|
+
return de_CommandError(output, context);
|
|
910
876
|
}
|
|
911
877
|
const data = await parseBody(output.body, context);
|
|
912
878
|
let contents = {};
|
|
@@ -917,43 +883,9 @@ var de_CreateCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
917
883
|
};
|
|
918
884
|
return response;
|
|
919
885
|
}, "de_CreateCustomDomainAssociationCommand");
|
|
920
|
-
var de_CreateCustomDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context)
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "AccessDeniedException":
|
|
928
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
929
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ConflictException":
|
|
931
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
932
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
933
|
-
case "InternalServerException":
|
|
934
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
935
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ResourceNotFoundException":
|
|
937
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
938
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ThrottlingException":
|
|
940
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
941
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ValidationException":
|
|
943
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
944
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
945
|
-
default:
|
|
946
|
-
const parsedBody = parsedOutput.body;
|
|
947
|
-
return throwDefaultError({
|
|
948
|
-
output,
|
|
949
|
-
parsedBody,
|
|
950
|
-
errorCode
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
}, "de_CreateCustomDomainAssociationCommandError");
|
|
954
886
|
var de_CreateEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
955
887
|
if (output.statusCode >= 300) {
|
|
956
|
-
return
|
|
888
|
+
return de_CommandError(output, context);
|
|
957
889
|
}
|
|
958
890
|
const data = await parseBody(output.body, context);
|
|
959
891
|
let contents = {};
|
|
@@ -964,43 +896,9 @@ var de_CreateEndpointAccessCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
964
896
|
};
|
|
965
897
|
return response;
|
|
966
898
|
}, "de_CreateEndpointAccessCommand");
|
|
967
|
-
var de_CreateEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context)
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "AccessDeniedException":
|
|
975
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ConflictException":
|
|
978
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
979
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
980
|
-
case "InternalServerException":
|
|
981
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
982
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ResourceNotFoundException":
|
|
984
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
985
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ServiceQuotaExceededException":
|
|
987
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
988
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
989
|
-
case "ValidationException":
|
|
990
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
991
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
992
|
-
default:
|
|
993
|
-
const parsedBody = parsedOutput.body;
|
|
994
|
-
return throwDefaultError({
|
|
995
|
-
output,
|
|
996
|
-
parsedBody,
|
|
997
|
-
errorCode
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
}, "de_CreateEndpointAccessCommandError");
|
|
1001
899
|
var de_CreateNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
900
|
if (output.statusCode >= 300) {
|
|
1003
|
-
return
|
|
901
|
+
return de_CommandError(output, context);
|
|
1004
902
|
}
|
|
1005
903
|
const data = await parseBody(output.body, context);
|
|
1006
904
|
let contents = {};
|
|
@@ -1011,37 +909,9 @@ var de_CreateNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1011
909
|
};
|
|
1012
910
|
return response;
|
|
1013
911
|
}, "de_CreateNamespaceCommand");
|
|
1014
|
-
var de_CreateNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1015
|
-
const parsedOutput = {
|
|
1016
|
-
...output,
|
|
1017
|
-
body: await parseErrorBody(output.body, context)
|
|
1018
|
-
};
|
|
1019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "ConflictException":
|
|
1022
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1023
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "InternalServerException":
|
|
1025
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1026
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "TooManyTagsException":
|
|
1028
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
1029
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ValidationException":
|
|
1031
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
}, "de_CreateNamespaceCommandError");
|
|
1042
912
|
var de_CreateScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
913
|
if (output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
914
|
+
return de_CommandError(output, context);
|
|
1045
915
|
}
|
|
1046
916
|
const data = await parseBody(output.body, context);
|
|
1047
917
|
let contents = {};
|
|
@@ -1052,37 +922,9 @@ var de_CreateScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1052
922
|
};
|
|
1053
923
|
return response;
|
|
1054
924
|
}, "de_CreateScheduledActionCommand");
|
|
1055
|
-
var de_CreateScheduledActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1056
|
-
const parsedOutput = {
|
|
1057
|
-
...output,
|
|
1058
|
-
body: await parseErrorBody(output.body, context)
|
|
1059
|
-
};
|
|
1060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
-
switch (errorCode) {
|
|
1062
|
-
case "ConflictException":
|
|
1063
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1064
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "InternalServerException":
|
|
1066
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1067
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ResourceNotFoundException":
|
|
1069
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1070
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ValidationException":
|
|
1072
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1074
|
-
default:
|
|
1075
|
-
const parsedBody = parsedOutput.body;
|
|
1076
|
-
return throwDefaultError({
|
|
1077
|
-
output,
|
|
1078
|
-
parsedBody,
|
|
1079
|
-
errorCode
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
}, "de_CreateScheduledActionCommandError");
|
|
1083
925
|
var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1084
926
|
if (output.statusCode >= 300) {
|
|
1085
|
-
return
|
|
927
|
+
return de_CommandError(output, context);
|
|
1086
928
|
}
|
|
1087
929
|
const data = await parseBody(output.body, context);
|
|
1088
930
|
let contents = {};
|
|
@@ -1093,43 +935,9 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1093
935
|
};
|
|
1094
936
|
return response;
|
|
1095
937
|
}, "de_CreateSnapshotCommand");
|
|
1096
|
-
var de_CreateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1097
|
-
const parsedOutput = {
|
|
1098
|
-
...output,
|
|
1099
|
-
body: await parseErrorBody(output.body, context)
|
|
1100
|
-
};
|
|
1101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
|
-
switch (errorCode) {
|
|
1103
|
-
case "ConflictException":
|
|
1104
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1105
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "InternalServerException":
|
|
1107
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1108
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ResourceNotFoundException":
|
|
1110
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1111
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ServiceQuotaExceededException":
|
|
1113
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1114
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "TooManyTagsException":
|
|
1116
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
1117
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ValidationException":
|
|
1119
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1120
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1121
|
-
default:
|
|
1122
|
-
const parsedBody = parsedOutput.body;
|
|
1123
|
-
return throwDefaultError({
|
|
1124
|
-
output,
|
|
1125
|
-
parsedBody,
|
|
1126
|
-
errorCode
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
}, "de_CreateSnapshotCommandError");
|
|
1130
938
|
var de_CreateSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1131
939
|
if (output.statusCode >= 300) {
|
|
1132
|
-
return
|
|
940
|
+
return de_CommandError(output, context);
|
|
1133
941
|
}
|
|
1134
942
|
const data = await parseBody(output.body, context);
|
|
1135
943
|
let contents = {};
|
|
@@ -1140,43 +948,9 @@ var de_CreateSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1140
948
|
};
|
|
1141
949
|
return response;
|
|
1142
950
|
}, "de_CreateSnapshotCopyConfigurationCommand");
|
|
1143
|
-
var de_CreateSnapshotCopyConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1144
|
-
const parsedOutput = {
|
|
1145
|
-
...output,
|
|
1146
|
-
body: await parseErrorBody(output.body, context)
|
|
1147
|
-
};
|
|
1148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
-
switch (errorCode) {
|
|
1150
|
-
case "AccessDeniedException":
|
|
1151
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ConflictException":
|
|
1154
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1155
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InternalServerException":
|
|
1157
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1158
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ResourceNotFoundException":
|
|
1160
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1161
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ServiceQuotaExceededException":
|
|
1163
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1164
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ValidationException":
|
|
1166
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1167
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1168
|
-
default:
|
|
1169
|
-
const parsedBody = parsedOutput.body;
|
|
1170
|
-
return throwDefaultError({
|
|
1171
|
-
output,
|
|
1172
|
-
parsedBody,
|
|
1173
|
-
errorCode
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
}, "de_CreateSnapshotCopyConfigurationCommandError");
|
|
1177
951
|
var de_CreateUsageLimitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
952
|
if (output.statusCode >= 300) {
|
|
1179
|
-
return
|
|
953
|
+
return de_CommandError(output, context);
|
|
1180
954
|
}
|
|
1181
955
|
const data = await parseBody(output.body, context);
|
|
1182
956
|
let contents = {};
|
|
@@ -1187,40 +961,9 @@ var de_CreateUsageLimitCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1187
961
|
};
|
|
1188
962
|
return response;
|
|
1189
963
|
}, "de_CreateUsageLimitCommand");
|
|
1190
|
-
var de_CreateUsageLimitCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1191
|
-
const parsedOutput = {
|
|
1192
|
-
...output,
|
|
1193
|
-
body: await parseErrorBody(output.body, context)
|
|
1194
|
-
};
|
|
1195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
-
switch (errorCode) {
|
|
1197
|
-
case "ConflictException":
|
|
1198
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1199
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "InternalServerException":
|
|
1201
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1202
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ResourceNotFoundException":
|
|
1204
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1205
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ServiceQuotaExceededException":
|
|
1207
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1208
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ValidationException":
|
|
1210
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1211
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1212
|
-
default:
|
|
1213
|
-
const parsedBody = parsedOutput.body;
|
|
1214
|
-
return throwDefaultError({
|
|
1215
|
-
output,
|
|
1216
|
-
parsedBody,
|
|
1217
|
-
errorCode
|
|
1218
|
-
});
|
|
1219
|
-
}
|
|
1220
|
-
}, "de_CreateUsageLimitCommandError");
|
|
1221
964
|
var de_CreateWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
965
|
if (output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
966
|
+
return de_CommandError(output, context);
|
|
1224
967
|
}
|
|
1225
968
|
const data = await parseBody(output.body, context);
|
|
1226
969
|
let contents = {};
|
|
@@ -1231,90 +974,22 @@ var de_CreateWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1231
974
|
};
|
|
1232
975
|
return response;
|
|
1233
976
|
}, "de_CreateWorkgroupCommand");
|
|
1234
|
-
var
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
case "InsufficientCapacityException":
|
|
1245
|
-
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
1246
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "InternalServerException":
|
|
1248
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1249
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ResourceNotFoundException":
|
|
1251
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1252
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "TooManyTagsException":
|
|
1254
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
1255
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ValidationException":
|
|
1257
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1258
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}, "de_CreateWorkgroupCommandError");
|
|
1268
|
-
var de_DeleteCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1269
|
-
if (output.statusCode >= 300) {
|
|
1270
|
-
return de_DeleteCustomDomainAssociationCommandError(output, context);
|
|
1271
|
-
}
|
|
1272
|
-
const data = await parseBody(output.body, context);
|
|
1273
|
-
let contents = {};
|
|
1274
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1275
|
-
const response = {
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
...contents
|
|
977
|
+
var de_DeleteCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
978
|
+
if (output.statusCode >= 300) {
|
|
979
|
+
return de_CommandError(output, context);
|
|
980
|
+
}
|
|
981
|
+
const data = await parseBody(output.body, context);
|
|
982
|
+
let contents = {};
|
|
983
|
+
contents = (0, import_smithy_client._json)(data);
|
|
984
|
+
const response = {
|
|
985
|
+
$metadata: deserializeMetadata(output),
|
|
986
|
+
...contents
|
|
1278
987
|
};
|
|
1279
988
|
return response;
|
|
1280
989
|
}, "de_DeleteCustomDomainAssociationCommand");
|
|
1281
|
-
var de_DeleteCustomDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
|
-
const parsedOutput = {
|
|
1283
|
-
...output,
|
|
1284
|
-
body: await parseErrorBody(output.body, context)
|
|
1285
|
-
};
|
|
1286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
-
switch (errorCode) {
|
|
1288
|
-
case "AccessDeniedException":
|
|
1289
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1290
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "ConflictException":
|
|
1292
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1293
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "InternalServerException":
|
|
1295
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1296
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "ResourceNotFoundException":
|
|
1298
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1299
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "ThrottlingException":
|
|
1301
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1302
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "ValidationException":
|
|
1304
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1305
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1306
|
-
default:
|
|
1307
|
-
const parsedBody = parsedOutput.body;
|
|
1308
|
-
return throwDefaultError({
|
|
1309
|
-
output,
|
|
1310
|
-
parsedBody,
|
|
1311
|
-
errorCode
|
|
1312
|
-
});
|
|
1313
|
-
}
|
|
1314
|
-
}, "de_DeleteCustomDomainAssociationCommandError");
|
|
1315
990
|
var de_DeleteEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1316
991
|
if (output.statusCode >= 300) {
|
|
1317
|
-
return
|
|
992
|
+
return de_CommandError(output, context);
|
|
1318
993
|
}
|
|
1319
994
|
const data = await parseBody(output.body, context);
|
|
1320
995
|
let contents = {};
|
|
@@ -1325,37 +1000,9 @@ var de_DeleteEndpointAccessCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1325
1000
|
};
|
|
1326
1001
|
return response;
|
|
1327
1002
|
}, "de_DeleteEndpointAccessCommand");
|
|
1328
|
-
var de_DeleteEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1329
|
-
const parsedOutput = {
|
|
1330
|
-
...output,
|
|
1331
|
-
body: await parseErrorBody(output.body, context)
|
|
1332
|
-
};
|
|
1333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
-
switch (errorCode) {
|
|
1335
|
-
case "ConflictException":
|
|
1336
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1337
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InternalServerException":
|
|
1339
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "ResourceNotFoundException":
|
|
1342
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1343
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ValidationException":
|
|
1345
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1346
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1347
|
-
default:
|
|
1348
|
-
const parsedBody = parsedOutput.body;
|
|
1349
|
-
return throwDefaultError({
|
|
1350
|
-
output,
|
|
1351
|
-
parsedBody,
|
|
1352
|
-
errorCode
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
}, "de_DeleteEndpointAccessCommandError");
|
|
1356
1003
|
var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1357
1004
|
if (output.statusCode >= 300) {
|
|
1358
|
-
return
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1359
1006
|
}
|
|
1360
1007
|
const data = await parseBody(output.body, context);
|
|
1361
1008
|
let contents = {};
|
|
@@ -1366,37 +1013,9 @@ var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1366
1013
|
};
|
|
1367
1014
|
return response;
|
|
1368
1015
|
}, "de_DeleteNamespaceCommand");
|
|
1369
|
-
var de_DeleteNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context)
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "ConflictException":
|
|
1377
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1378
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "InternalServerException":
|
|
1380
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ResourceNotFoundException":
|
|
1383
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ValidationException":
|
|
1386
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1387
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1388
|
-
default:
|
|
1389
|
-
const parsedBody = parsedOutput.body;
|
|
1390
|
-
return throwDefaultError({
|
|
1391
|
-
output,
|
|
1392
|
-
parsedBody,
|
|
1393
|
-
errorCode
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
}, "de_DeleteNamespaceCommandError");
|
|
1397
1016
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1398
1017
|
if (output.statusCode >= 300) {
|
|
1399
|
-
return
|
|
1018
|
+
return de_CommandError(output, context);
|
|
1400
1019
|
}
|
|
1401
1020
|
const data = await parseBody(output.body, context);
|
|
1402
1021
|
let contents = {};
|
|
@@ -1407,34 +1026,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1407
1026
|
};
|
|
1408
1027
|
return response;
|
|
1409
1028
|
}, "de_DeleteResourcePolicyCommand");
|
|
1410
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context)
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "InternalServerException":
|
|
1418
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ResourceNotFoundException":
|
|
1421
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ValidationException":
|
|
1424
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1426
|
-
default:
|
|
1427
|
-
const parsedBody = parsedOutput.body;
|
|
1428
|
-
return throwDefaultError({
|
|
1429
|
-
output,
|
|
1430
|
-
parsedBody,
|
|
1431
|
-
errorCode
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
1435
1029
|
var de_DeleteScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1436
1030
|
if (output.statusCode >= 300) {
|
|
1437
|
-
return
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1438
1032
|
}
|
|
1439
1033
|
const data = await parseBody(output.body, context);
|
|
1440
1034
|
let contents = {};
|
|
@@ -1445,34 +1039,9 @@ var de_DeleteScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1445
1039
|
};
|
|
1446
1040
|
return response;
|
|
1447
1041
|
}, "de_DeleteScheduledActionCommand");
|
|
1448
|
-
var de_DeleteScheduledActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1449
|
-
const parsedOutput = {
|
|
1450
|
-
...output,
|
|
1451
|
-
body: await parseErrorBody(output.body, context)
|
|
1452
|
-
};
|
|
1453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
|
-
switch (errorCode) {
|
|
1455
|
-
case "InternalServerException":
|
|
1456
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1457
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ResourceNotFoundException":
|
|
1459
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1460
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ValidationException":
|
|
1462
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1464
|
-
default:
|
|
1465
|
-
const parsedBody = parsedOutput.body;
|
|
1466
|
-
return throwDefaultError({
|
|
1467
|
-
output,
|
|
1468
|
-
parsedBody,
|
|
1469
|
-
errorCode
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
}, "de_DeleteScheduledActionCommandError");
|
|
1473
1042
|
var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1474
1043
|
if (output.statusCode >= 300) {
|
|
1475
|
-
return
|
|
1044
|
+
return de_CommandError(output, context);
|
|
1476
1045
|
}
|
|
1477
1046
|
const data = await parseBody(output.body, context);
|
|
1478
1047
|
let contents = {};
|
|
@@ -1483,37 +1052,9 @@ var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1483
1052
|
};
|
|
1484
1053
|
return response;
|
|
1485
1054
|
}, "de_DeleteSnapshotCommand");
|
|
1486
|
-
var de_DeleteSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
|
-
const parsedOutput = {
|
|
1488
|
-
...output,
|
|
1489
|
-
body: await parseErrorBody(output.body, context)
|
|
1490
|
-
};
|
|
1491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "ConflictException":
|
|
1494
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1495
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "InternalServerException":
|
|
1497
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ResourceNotFoundException":
|
|
1500
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ValidationException":
|
|
1503
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1504
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
}, "de_DeleteSnapshotCommandError");
|
|
1514
1055
|
var de_DeleteSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1515
1056
|
if (output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
1057
|
+
return de_CommandError(output, context);
|
|
1517
1058
|
}
|
|
1518
1059
|
const data = await parseBody(output.body, context);
|
|
1519
1060
|
let contents = {};
|
|
@@ -1524,40 +1065,9 @@ var de_DeleteSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1524
1065
|
};
|
|
1525
1066
|
return response;
|
|
1526
1067
|
}, "de_DeleteSnapshotCopyConfigurationCommand");
|
|
1527
|
-
var de_DeleteSnapshotCopyConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1528
|
-
const parsedOutput = {
|
|
1529
|
-
...output,
|
|
1530
|
-
body: await parseErrorBody(output.body, context)
|
|
1531
|
-
};
|
|
1532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
-
switch (errorCode) {
|
|
1534
|
-
case "AccessDeniedException":
|
|
1535
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1536
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "ConflictException":
|
|
1538
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1539
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "InternalServerException":
|
|
1541
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ResourceNotFoundException":
|
|
1544
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ValidationException":
|
|
1547
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1549
|
-
default:
|
|
1550
|
-
const parsedBody = parsedOutput.body;
|
|
1551
|
-
return throwDefaultError({
|
|
1552
|
-
output,
|
|
1553
|
-
parsedBody,
|
|
1554
|
-
errorCode
|
|
1555
|
-
});
|
|
1556
|
-
}
|
|
1557
|
-
}, "de_DeleteSnapshotCopyConfigurationCommandError");
|
|
1558
1068
|
var de_DeleteUsageLimitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1559
1069
|
if (output.statusCode >= 300) {
|
|
1560
|
-
return
|
|
1070
|
+
return de_CommandError(output, context);
|
|
1561
1071
|
}
|
|
1562
1072
|
const data = await parseBody(output.body, context);
|
|
1563
1073
|
let contents = {};
|
|
@@ -1568,37 +1078,9 @@ var de_DeleteUsageLimitCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1568
1078
|
};
|
|
1569
1079
|
return response;
|
|
1570
1080
|
}, "de_DeleteUsageLimitCommand");
|
|
1571
|
-
var de_DeleteUsageLimitCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
|
-
const parsedOutput = {
|
|
1573
|
-
...output,
|
|
1574
|
-
body: await parseErrorBody(output.body, context)
|
|
1575
|
-
};
|
|
1576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
|
-
switch (errorCode) {
|
|
1578
|
-
case "ConflictException":
|
|
1579
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1580
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "InternalServerException":
|
|
1582
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1583
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "ResourceNotFoundException":
|
|
1585
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ValidationException":
|
|
1588
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1590
|
-
default:
|
|
1591
|
-
const parsedBody = parsedOutput.body;
|
|
1592
|
-
return throwDefaultError({
|
|
1593
|
-
output,
|
|
1594
|
-
parsedBody,
|
|
1595
|
-
errorCode
|
|
1596
|
-
});
|
|
1597
|
-
}
|
|
1598
|
-
}, "de_DeleteUsageLimitCommandError");
|
|
1599
1081
|
var de_DeleteWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1600
1082
|
if (output.statusCode >= 300) {
|
|
1601
|
-
return
|
|
1083
|
+
return de_CommandError(output, context);
|
|
1602
1084
|
}
|
|
1603
1085
|
const data = await parseBody(output.body, context);
|
|
1604
1086
|
let contents = {};
|
|
@@ -1609,37 +1091,9 @@ var de_DeleteWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1609
1091
|
};
|
|
1610
1092
|
return response;
|
|
1611
1093
|
}, "de_DeleteWorkgroupCommand");
|
|
1612
|
-
var de_DeleteWorkgroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1613
|
-
const parsedOutput = {
|
|
1614
|
-
...output,
|
|
1615
|
-
body: await parseErrorBody(output.body, context)
|
|
1616
|
-
};
|
|
1617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
-
switch (errorCode) {
|
|
1619
|
-
case "ConflictException":
|
|
1620
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1621
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "InternalServerException":
|
|
1623
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1624
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "ResourceNotFoundException":
|
|
1626
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1627
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ValidationException":
|
|
1629
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1631
|
-
default:
|
|
1632
|
-
const parsedBody = parsedOutput.body;
|
|
1633
|
-
return throwDefaultError({
|
|
1634
|
-
output,
|
|
1635
|
-
parsedBody,
|
|
1636
|
-
errorCode
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
}, "de_DeleteWorkgroupCommandError");
|
|
1640
1094
|
var de_GetCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1641
1095
|
if (output.statusCode >= 300) {
|
|
1642
|
-
return
|
|
1096
|
+
return de_CommandError(output, context);
|
|
1643
1097
|
}
|
|
1644
1098
|
const data = await parseBody(output.body, context);
|
|
1645
1099
|
let contents = {};
|
|
@@ -1650,34 +1104,9 @@ var de_GetCredentialsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1650
1104
|
};
|
|
1651
1105
|
return response;
|
|
1652
1106
|
}, "de_GetCredentialsCommand");
|
|
1653
|
-
var de_GetCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context)
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "InternalServerException":
|
|
1661
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ResourceNotFoundException":
|
|
1664
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "ValidationException":
|
|
1667
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1669
|
-
default:
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody,
|
|
1674
|
-
errorCode
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
}, "de_GetCredentialsCommandError");
|
|
1678
1107
|
var de_GetCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1679
1108
|
if (output.statusCode >= 300) {
|
|
1680
|
-
return
|
|
1109
|
+
return de_CommandError(output, context);
|
|
1681
1110
|
}
|
|
1682
1111
|
const data = await parseBody(output.body, context);
|
|
1683
1112
|
let contents = {};
|
|
@@ -1688,43 +1117,9 @@ var de_GetCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1688
1117
|
};
|
|
1689
1118
|
return response;
|
|
1690
1119
|
}, "de_GetCustomDomainAssociationCommand");
|
|
1691
|
-
var de_GetCustomDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1692
|
-
const parsedOutput = {
|
|
1693
|
-
...output,
|
|
1694
|
-
body: await parseErrorBody(output.body, context)
|
|
1695
|
-
};
|
|
1696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1697
|
-
switch (errorCode) {
|
|
1698
|
-
case "AccessDeniedException":
|
|
1699
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1700
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ConflictException":
|
|
1702
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1703
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "InternalServerException":
|
|
1705
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1706
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ResourceNotFoundException":
|
|
1708
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1709
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ThrottlingException":
|
|
1711
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1712
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ValidationException":
|
|
1714
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1715
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1716
|
-
default:
|
|
1717
|
-
const parsedBody = parsedOutput.body;
|
|
1718
|
-
return throwDefaultError({
|
|
1719
|
-
output,
|
|
1720
|
-
parsedBody,
|
|
1721
|
-
errorCode
|
|
1722
|
-
});
|
|
1723
|
-
}
|
|
1724
|
-
}, "de_GetCustomDomainAssociationCommandError");
|
|
1725
1120
|
var de_GetEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1726
1121
|
if (output.statusCode >= 300) {
|
|
1727
|
-
return
|
|
1122
|
+
return de_CommandError(output, context);
|
|
1728
1123
|
}
|
|
1729
1124
|
const data = await parseBody(output.body, context);
|
|
1730
1125
|
let contents = {};
|
|
@@ -1735,37 +1130,9 @@ var de_GetEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1735
1130
|
};
|
|
1736
1131
|
return response;
|
|
1737
1132
|
}, "de_GetEndpointAccessCommand");
|
|
1738
|
-
var de_GetEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1739
|
-
const parsedOutput = {
|
|
1740
|
-
...output,
|
|
1741
|
-
body: await parseErrorBody(output.body, context)
|
|
1742
|
-
};
|
|
1743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
-
switch (errorCode) {
|
|
1745
|
-
case "ConflictException":
|
|
1746
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1747
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "InternalServerException":
|
|
1749
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ResourceNotFoundException":
|
|
1752
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ValidationException":
|
|
1755
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1756
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1757
|
-
default:
|
|
1758
|
-
const parsedBody = parsedOutput.body;
|
|
1759
|
-
return throwDefaultError({
|
|
1760
|
-
output,
|
|
1761
|
-
parsedBody,
|
|
1762
|
-
errorCode
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
|
-
}, "de_GetEndpointAccessCommandError");
|
|
1766
1133
|
var de_GetNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1767
1134
|
if (output.statusCode >= 300) {
|
|
1768
|
-
return
|
|
1135
|
+
return de_CommandError(output, context);
|
|
1769
1136
|
}
|
|
1770
1137
|
const data = await parseBody(output.body, context);
|
|
1771
1138
|
let contents = {};
|
|
@@ -1776,34 +1143,9 @@ var de_GetNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1776
1143
|
};
|
|
1777
1144
|
return response;
|
|
1778
1145
|
}, "de_GetNamespaceCommand");
|
|
1779
|
-
var de_GetNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1780
|
-
const parsedOutput = {
|
|
1781
|
-
...output,
|
|
1782
|
-
body: await parseErrorBody(output.body, context)
|
|
1783
|
-
};
|
|
1784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
|
-
switch (errorCode) {
|
|
1786
|
-
case "InternalServerException":
|
|
1787
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1788
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "ResourceNotFoundException":
|
|
1790
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1791
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "ValidationException":
|
|
1793
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1794
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1795
|
-
default:
|
|
1796
|
-
const parsedBody = parsedOutput.body;
|
|
1797
|
-
return throwDefaultError({
|
|
1798
|
-
output,
|
|
1799
|
-
parsedBody,
|
|
1800
|
-
errorCode
|
|
1801
|
-
});
|
|
1802
|
-
}
|
|
1803
|
-
}, "de_GetNamespaceCommandError");
|
|
1804
1146
|
var de_GetRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1805
1147
|
if (output.statusCode >= 300) {
|
|
1806
|
-
return
|
|
1148
|
+
return de_CommandError(output, context);
|
|
1807
1149
|
}
|
|
1808
1150
|
const data = await parseBody(output.body, context);
|
|
1809
1151
|
let contents = {};
|
|
@@ -1814,37 +1156,9 @@ var de_GetRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1814
1156
|
};
|
|
1815
1157
|
return response;
|
|
1816
1158
|
}, "de_GetRecoveryPointCommand");
|
|
1817
|
-
var de_GetRecoveryPointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1818
|
-
const parsedOutput = {
|
|
1819
|
-
...output,
|
|
1820
|
-
body: await parseErrorBody(output.body, context)
|
|
1821
|
-
};
|
|
1822
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
|
-
switch (errorCode) {
|
|
1824
|
-
case "ConflictException":
|
|
1825
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1826
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "InternalServerException":
|
|
1828
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1829
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ResourceNotFoundException":
|
|
1831
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1832
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ValidationException":
|
|
1834
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1835
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1836
|
-
default:
|
|
1837
|
-
const parsedBody = parsedOutput.body;
|
|
1838
|
-
return throwDefaultError({
|
|
1839
|
-
output,
|
|
1840
|
-
parsedBody,
|
|
1841
|
-
errorCode
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
}, "de_GetRecoveryPointCommandError");
|
|
1845
1159
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1846
1160
|
if (output.statusCode >= 300) {
|
|
1847
|
-
return
|
|
1161
|
+
return de_CommandError(output, context);
|
|
1848
1162
|
}
|
|
1849
1163
|
const data = await parseBody(output.body, context);
|
|
1850
1164
|
let contents = {};
|
|
@@ -1855,34 +1169,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1855
1169
|
};
|
|
1856
1170
|
return response;
|
|
1857
1171
|
}, "de_GetResourcePolicyCommand");
|
|
1858
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1859
|
-
const parsedOutput = {
|
|
1860
|
-
...output,
|
|
1861
|
-
body: await parseErrorBody(output.body, context)
|
|
1862
|
-
};
|
|
1863
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
|
-
switch (errorCode) {
|
|
1865
|
-
case "InternalServerException":
|
|
1866
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1867
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "ResourceNotFoundException":
|
|
1869
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1870
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "ValidationException":
|
|
1872
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1873
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1874
|
-
default:
|
|
1875
|
-
const parsedBody = parsedOutput.body;
|
|
1876
|
-
return throwDefaultError({
|
|
1877
|
-
output,
|
|
1878
|
-
parsedBody,
|
|
1879
|
-
errorCode
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
}, "de_GetResourcePolicyCommandError");
|
|
1883
1172
|
var de_GetScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
1173
|
if (output.statusCode >= 300) {
|
|
1885
|
-
return
|
|
1174
|
+
return de_CommandError(output, context);
|
|
1886
1175
|
}
|
|
1887
1176
|
const data = await parseBody(output.body, context);
|
|
1888
1177
|
let contents = {};
|
|
@@ -1893,34 +1182,9 @@ var de_GetScheduledActionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1893
1182
|
};
|
|
1894
1183
|
return response;
|
|
1895
1184
|
}, "de_GetScheduledActionCommand");
|
|
1896
|
-
var de_GetScheduledActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1897
|
-
const parsedOutput = {
|
|
1898
|
-
...output,
|
|
1899
|
-
body: await parseErrorBody(output.body, context)
|
|
1900
|
-
};
|
|
1901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
-
switch (errorCode) {
|
|
1903
|
-
case "InternalServerException":
|
|
1904
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ResourceNotFoundException":
|
|
1907
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1908
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "ValidationException":
|
|
1910
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1911
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1912
|
-
default:
|
|
1913
|
-
const parsedBody = parsedOutput.body;
|
|
1914
|
-
return throwDefaultError({
|
|
1915
|
-
output,
|
|
1916
|
-
parsedBody,
|
|
1917
|
-
errorCode
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
}, "de_GetScheduledActionCommandError");
|
|
1921
1185
|
var de_GetSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1922
1186
|
if (output.statusCode >= 300) {
|
|
1923
|
-
return
|
|
1187
|
+
return de_CommandError(output, context);
|
|
1924
1188
|
}
|
|
1925
1189
|
const data = await parseBody(output.body, context);
|
|
1926
1190
|
let contents = {};
|
|
@@ -1931,34 +1195,9 @@ var de_GetSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1931
1195
|
};
|
|
1932
1196
|
return response;
|
|
1933
1197
|
}, "de_GetSnapshotCommand");
|
|
1934
|
-
var de_GetSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1935
|
-
const parsedOutput = {
|
|
1936
|
-
...output,
|
|
1937
|
-
body: await parseErrorBody(output.body, context)
|
|
1938
|
-
};
|
|
1939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
|
-
switch (errorCode) {
|
|
1941
|
-
case "InternalServerException":
|
|
1942
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1943
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ResourceNotFoundException":
|
|
1945
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1946
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "ValidationException":
|
|
1948
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1949
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1950
|
-
default:
|
|
1951
|
-
const parsedBody = parsedOutput.body;
|
|
1952
|
-
return throwDefaultError({
|
|
1953
|
-
output,
|
|
1954
|
-
parsedBody,
|
|
1955
|
-
errorCode
|
|
1956
|
-
});
|
|
1957
|
-
}
|
|
1958
|
-
}, "de_GetSnapshotCommandError");
|
|
1959
1198
|
var de_GetTableRestoreStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1960
1199
|
if (output.statusCode >= 300) {
|
|
1961
|
-
return
|
|
1200
|
+
return de_CommandError(output, context);
|
|
1962
1201
|
}
|
|
1963
1202
|
const data = await parseBody(output.body, context);
|
|
1964
1203
|
let contents = {};
|
|
@@ -1969,31 +1208,9 @@ var de_GetTableRestoreStatusCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1969
1208
|
};
|
|
1970
1209
|
return response;
|
|
1971
1210
|
}, "de_GetTableRestoreStatusCommand");
|
|
1972
|
-
var de_GetTableRestoreStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1973
|
-
const parsedOutput = {
|
|
1974
|
-
...output,
|
|
1975
|
-
body: await parseErrorBody(output.body, context)
|
|
1976
|
-
};
|
|
1977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1978
|
-
switch (errorCode) {
|
|
1979
|
-
case "ResourceNotFoundException":
|
|
1980
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1981
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "ValidationException":
|
|
1983
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1984
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1985
|
-
default:
|
|
1986
|
-
const parsedBody = parsedOutput.body;
|
|
1987
|
-
return throwDefaultError({
|
|
1988
|
-
output,
|
|
1989
|
-
parsedBody,
|
|
1990
|
-
errorCode
|
|
1991
|
-
});
|
|
1992
|
-
}
|
|
1993
|
-
}, "de_GetTableRestoreStatusCommandError");
|
|
1994
1211
|
var de_GetUsageLimitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1995
1212
|
if (output.statusCode >= 300) {
|
|
1996
|
-
return
|
|
1213
|
+
return de_CommandError(output, context);
|
|
1997
1214
|
}
|
|
1998
1215
|
const data = await parseBody(output.body, context);
|
|
1999
1216
|
let contents = {};
|
|
@@ -2004,75 +1221,22 @@ var de_GetUsageLimitCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2004
1221
|
};
|
|
2005
1222
|
return response;
|
|
2006
1223
|
}, "de_GetUsageLimitCommand");
|
|
2007
|
-
var
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
case "InternalServerException":
|
|
2018
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2019
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "ResourceNotFoundException":
|
|
2021
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2022
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "ValidationException":
|
|
2024
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2025
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2026
|
-
default:
|
|
2027
|
-
const parsedBody = parsedOutput.body;
|
|
2028
|
-
return throwDefaultError({
|
|
2029
|
-
output,
|
|
2030
|
-
parsedBody,
|
|
2031
|
-
errorCode
|
|
2032
|
-
});
|
|
2033
|
-
}
|
|
2034
|
-
}, "de_GetUsageLimitCommandError");
|
|
2035
|
-
var de_GetWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2036
|
-
if (output.statusCode >= 300) {
|
|
2037
|
-
return de_GetWorkgroupCommandError(output, context);
|
|
2038
|
-
}
|
|
2039
|
-
const data = await parseBody(output.body, context);
|
|
2040
|
-
let contents = {};
|
|
2041
|
-
contents = de_GetWorkgroupResponse(data, context);
|
|
2042
|
-
const response = {
|
|
2043
|
-
$metadata: deserializeMetadata(output),
|
|
2044
|
-
...contents
|
|
1224
|
+
var de_GetWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1225
|
+
if (output.statusCode >= 300) {
|
|
1226
|
+
return de_CommandError(output, context);
|
|
1227
|
+
}
|
|
1228
|
+
const data = await parseBody(output.body, context);
|
|
1229
|
+
let contents = {};
|
|
1230
|
+
contents = de_GetWorkgroupResponse(data, context);
|
|
1231
|
+
const response = {
|
|
1232
|
+
$metadata: deserializeMetadata(output),
|
|
1233
|
+
...contents
|
|
2045
1234
|
};
|
|
2046
1235
|
return response;
|
|
2047
1236
|
}, "de_GetWorkgroupCommand");
|
|
2048
|
-
var de_GetWorkgroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2049
|
-
const parsedOutput = {
|
|
2050
|
-
...output,
|
|
2051
|
-
body: await parseErrorBody(output.body, context)
|
|
2052
|
-
};
|
|
2053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
|
-
switch (errorCode) {
|
|
2055
|
-
case "InternalServerException":
|
|
2056
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2057
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ResourceNotFoundException":
|
|
2059
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ValidationException":
|
|
2062
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2063
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2064
|
-
default:
|
|
2065
|
-
const parsedBody = parsedOutput.body;
|
|
2066
|
-
return throwDefaultError({
|
|
2067
|
-
output,
|
|
2068
|
-
parsedBody,
|
|
2069
|
-
errorCode
|
|
2070
|
-
});
|
|
2071
|
-
}
|
|
2072
|
-
}, "de_GetWorkgroupCommandError");
|
|
2073
1237
|
var de_ListCustomDomainAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2074
1238
|
if (output.statusCode >= 300) {
|
|
2075
|
-
return
|
|
1239
|
+
return de_CommandError(output, context);
|
|
2076
1240
|
}
|
|
2077
1241
|
const data = await parseBody(output.body, context);
|
|
2078
1242
|
let contents = {};
|
|
@@ -2083,40 +1247,9 @@ var de_ListCustomDomainAssociationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2083
1247
|
};
|
|
2084
1248
|
return response;
|
|
2085
1249
|
}, "de_ListCustomDomainAssociationsCommand");
|
|
2086
|
-
var de_ListCustomDomainAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2087
|
-
const parsedOutput = {
|
|
2088
|
-
...output,
|
|
2089
|
-
body: await parseErrorBody(output.body, context)
|
|
2090
|
-
};
|
|
2091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
|
-
switch (errorCode) {
|
|
2093
|
-
case "AccessDeniedException":
|
|
2094
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2095
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "InternalServerException":
|
|
2097
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2098
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "InvalidPaginationException":
|
|
2100
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
2101
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "ThrottlingException":
|
|
2103
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2104
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "ValidationException":
|
|
2106
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2107
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2108
|
-
default:
|
|
2109
|
-
const parsedBody = parsedOutput.body;
|
|
2110
|
-
return throwDefaultError({
|
|
2111
|
-
output,
|
|
2112
|
-
parsedBody,
|
|
2113
|
-
errorCode
|
|
2114
|
-
});
|
|
2115
|
-
}
|
|
2116
|
-
}, "de_ListCustomDomainAssociationsCommandError");
|
|
2117
1250
|
var de_ListEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2118
1251
|
if (output.statusCode >= 300) {
|
|
2119
|
-
return
|
|
1252
|
+
return de_CommandError(output, context);
|
|
2120
1253
|
}
|
|
2121
1254
|
const data = await parseBody(output.body, context);
|
|
2122
1255
|
let contents = {};
|
|
@@ -2127,37 +1260,9 @@ var de_ListEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2127
1260
|
};
|
|
2128
1261
|
return response;
|
|
2129
1262
|
}, "de_ListEndpointAccessCommand");
|
|
2130
|
-
var de_ListEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context)
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "ConflictException":
|
|
2138
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2139
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "InternalServerException":
|
|
2141
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2142
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceNotFoundException":
|
|
2144
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ValidationException":
|
|
2147
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2148
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2149
|
-
default:
|
|
2150
|
-
const parsedBody = parsedOutput.body;
|
|
2151
|
-
return throwDefaultError({
|
|
2152
|
-
output,
|
|
2153
|
-
parsedBody,
|
|
2154
|
-
errorCode
|
|
2155
|
-
});
|
|
2156
|
-
}
|
|
2157
|
-
}, "de_ListEndpointAccessCommandError");
|
|
2158
1263
|
var de_ListNamespacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2159
1264
|
if (output.statusCode >= 300) {
|
|
2160
|
-
return
|
|
1265
|
+
return de_CommandError(output, context);
|
|
2161
1266
|
}
|
|
2162
1267
|
const data = await parseBody(output.body, context);
|
|
2163
1268
|
let contents = {};
|
|
@@ -2168,31 +1273,9 @@ var de_ListNamespacesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2168
1273
|
};
|
|
2169
1274
|
return response;
|
|
2170
1275
|
}, "de_ListNamespacesCommand");
|
|
2171
|
-
var de_ListNamespacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2172
|
-
const parsedOutput = {
|
|
2173
|
-
...output,
|
|
2174
|
-
body: await parseErrorBody(output.body, context)
|
|
2175
|
-
};
|
|
2176
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2177
|
-
switch (errorCode) {
|
|
2178
|
-
case "InternalServerException":
|
|
2179
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2181
|
-
case "ValidationException":
|
|
2182
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2183
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2184
|
-
default:
|
|
2185
|
-
const parsedBody = parsedOutput.body;
|
|
2186
|
-
return throwDefaultError({
|
|
2187
|
-
output,
|
|
2188
|
-
parsedBody,
|
|
2189
|
-
errorCode
|
|
2190
|
-
});
|
|
2191
|
-
}
|
|
2192
|
-
}, "de_ListNamespacesCommandError");
|
|
2193
1276
|
var de_ListRecoveryPointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2194
1277
|
if (output.statusCode >= 300) {
|
|
2195
|
-
return
|
|
1278
|
+
return de_CommandError(output, context);
|
|
2196
1279
|
}
|
|
2197
1280
|
const data = await parseBody(output.body, context);
|
|
2198
1281
|
let contents = {};
|
|
@@ -2203,31 +1286,9 @@ var de_ListRecoveryPointsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2203
1286
|
};
|
|
2204
1287
|
return response;
|
|
2205
1288
|
}, "de_ListRecoveryPointsCommand");
|
|
2206
|
-
var de_ListRecoveryPointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2207
|
-
const parsedOutput = {
|
|
2208
|
-
...output,
|
|
2209
|
-
body: await parseErrorBody(output.body, context)
|
|
2210
|
-
};
|
|
2211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
|
-
switch (errorCode) {
|
|
2213
|
-
case "InternalServerException":
|
|
2214
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2215
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "ValidationException":
|
|
2217
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2218
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
}, "de_ListRecoveryPointsCommandError");
|
|
2228
1289
|
var de_ListScheduledActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
1290
|
if (output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
1291
|
+
return de_CommandError(output, context);
|
|
2231
1292
|
}
|
|
2232
1293
|
const data = await parseBody(output.body, context);
|
|
2233
1294
|
let contents = {};
|
|
@@ -2238,37 +1299,9 @@ var de_ListScheduledActionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2238
1299
|
};
|
|
2239
1300
|
return response;
|
|
2240
1301
|
}, "de_ListScheduledActionsCommand");
|
|
2241
|
-
var de_ListScheduledActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2242
|
-
const parsedOutput = {
|
|
2243
|
-
...output,
|
|
2244
|
-
body: await parseErrorBody(output.body, context)
|
|
2245
|
-
};
|
|
2246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
|
-
switch (errorCode) {
|
|
2248
|
-
case "InternalServerException":
|
|
2249
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2250
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "InvalidPaginationException":
|
|
2252
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
2253
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "ResourceNotFoundException":
|
|
2255
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "ValidationException":
|
|
2258
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2260
|
-
default:
|
|
2261
|
-
const parsedBody = parsedOutput.body;
|
|
2262
|
-
return throwDefaultError({
|
|
2263
|
-
output,
|
|
2264
|
-
parsedBody,
|
|
2265
|
-
errorCode
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
}, "de_ListScheduledActionsCommandError");
|
|
2269
1302
|
var de_ListSnapshotCopyConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2270
1303
|
if (output.statusCode >= 300) {
|
|
2271
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
2272
1305
|
}
|
|
2273
1306
|
const data = await parseBody(output.body, context);
|
|
2274
1307
|
let contents = {};
|
|
@@ -2279,40 +1312,9 @@ var de_ListSnapshotCopyConfigurationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
2279
1312
|
};
|
|
2280
1313
|
return response;
|
|
2281
1314
|
}, "de_ListSnapshotCopyConfigurationsCommand");
|
|
2282
|
-
var de_ListSnapshotCopyConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2283
|
-
const parsedOutput = {
|
|
2284
|
-
...output,
|
|
2285
|
-
body: await parseErrorBody(output.body, context)
|
|
2286
|
-
};
|
|
2287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
-
switch (errorCode) {
|
|
2289
|
-
case "ConflictException":
|
|
2290
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2291
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "InternalServerException":
|
|
2293
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "InvalidPaginationException":
|
|
2296
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
2297
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "ResourceNotFoundException":
|
|
2299
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2300
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "ValidationException":
|
|
2302
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2303
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2304
|
-
default:
|
|
2305
|
-
const parsedBody = parsedOutput.body;
|
|
2306
|
-
return throwDefaultError({
|
|
2307
|
-
output,
|
|
2308
|
-
parsedBody,
|
|
2309
|
-
errorCode
|
|
2310
|
-
});
|
|
2311
|
-
}
|
|
2312
|
-
}, "de_ListSnapshotCopyConfigurationsCommandError");
|
|
2313
1315
|
var de_ListSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2314
1316
|
if (output.statusCode >= 300) {
|
|
2315
|
-
return
|
|
1317
|
+
return de_CommandError(output, context);
|
|
2316
1318
|
}
|
|
2317
1319
|
const data = await parseBody(output.body, context);
|
|
2318
1320
|
let contents = {};
|
|
@@ -2323,34 +1325,9 @@ var de_ListSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2323
1325
|
};
|
|
2324
1326
|
return response;
|
|
2325
1327
|
}, "de_ListSnapshotsCommand");
|
|
2326
|
-
var de_ListSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2327
|
-
const parsedOutput = {
|
|
2328
|
-
...output,
|
|
2329
|
-
body: await parseErrorBody(output.body, context)
|
|
2330
|
-
};
|
|
2331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
|
-
switch (errorCode) {
|
|
2333
|
-
case "InternalServerException":
|
|
2334
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "ResourceNotFoundException":
|
|
2337
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ValidationException":
|
|
2340
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2341
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2342
|
-
default:
|
|
2343
|
-
const parsedBody = parsedOutput.body;
|
|
2344
|
-
return throwDefaultError({
|
|
2345
|
-
output,
|
|
2346
|
-
parsedBody,
|
|
2347
|
-
errorCode
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
}, "de_ListSnapshotsCommandError");
|
|
2351
1328
|
var de_ListTableRestoreStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2352
1329
|
if (output.statusCode >= 300) {
|
|
2353
|
-
return
|
|
1330
|
+
return de_CommandError(output, context);
|
|
2354
1331
|
}
|
|
2355
1332
|
const data = await parseBody(output.body, context);
|
|
2356
1333
|
let contents = {};
|
|
@@ -2361,34 +1338,9 @@ var de_ListTableRestoreStatusCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2361
1338
|
};
|
|
2362
1339
|
return response;
|
|
2363
1340
|
}, "de_ListTableRestoreStatusCommand");
|
|
2364
|
-
var de_ListTableRestoreStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2365
|
-
const parsedOutput = {
|
|
2366
|
-
...output,
|
|
2367
|
-
body: await parseErrorBody(output.body, context)
|
|
2368
|
-
};
|
|
2369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
-
switch (errorCode) {
|
|
2371
|
-
case "InvalidPaginationException":
|
|
2372
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
2373
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "ResourceNotFoundException":
|
|
2375
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "ValidationException":
|
|
2378
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2379
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2380
|
-
default:
|
|
2381
|
-
const parsedBody = parsedOutput.body;
|
|
2382
|
-
return throwDefaultError({
|
|
2383
|
-
output,
|
|
2384
|
-
parsedBody,
|
|
2385
|
-
errorCode
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
}, "de_ListTableRestoreStatusCommandError");
|
|
2389
1341
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2390
1342
|
if (output.statusCode >= 300) {
|
|
2391
|
-
return
|
|
1343
|
+
return de_CommandError(output, context);
|
|
2392
1344
|
}
|
|
2393
1345
|
const data = await parseBody(output.body, context);
|
|
2394
1346
|
let contents = {};
|
|
@@ -2399,37 +1351,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2399
1351
|
};
|
|
2400
1352
|
return response;
|
|
2401
1353
|
}, "de_ListTagsForResourceCommand");
|
|
2402
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2403
|
-
const parsedOutput = {
|
|
2404
|
-
...output,
|
|
2405
|
-
body: await parseErrorBody(output.body, context)
|
|
2406
|
-
};
|
|
2407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2408
|
-
switch (errorCode) {
|
|
2409
|
-
case "InternalServerException":
|
|
2410
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2411
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ResourceNotFoundException":
|
|
2413
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2414
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "ThrottlingException":
|
|
2416
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2417
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "ValidationException":
|
|
2419
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2420
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2421
|
-
default:
|
|
2422
|
-
const parsedBody = parsedOutput.body;
|
|
2423
|
-
return throwDefaultError({
|
|
2424
|
-
output,
|
|
2425
|
-
parsedBody,
|
|
2426
|
-
errorCode
|
|
2427
|
-
});
|
|
2428
|
-
}
|
|
2429
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2430
1354
|
var de_ListUsageLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2431
1355
|
if (output.statusCode >= 300) {
|
|
2432
|
-
return
|
|
1356
|
+
return de_CommandError(output, context);
|
|
2433
1357
|
}
|
|
2434
1358
|
const data = await parseBody(output.body, context);
|
|
2435
1359
|
let contents = {};
|
|
@@ -2440,40 +1364,9 @@ var de_ListUsageLimitsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2440
1364
|
};
|
|
2441
1365
|
return response;
|
|
2442
1366
|
}, "de_ListUsageLimitsCommand");
|
|
2443
|
-
var de_ListUsageLimitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2444
|
-
const parsedOutput = {
|
|
2445
|
-
...output,
|
|
2446
|
-
body: await parseErrorBody(output.body, context)
|
|
2447
|
-
};
|
|
2448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2449
|
-
switch (errorCode) {
|
|
2450
|
-
case "ConflictException":
|
|
2451
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2452
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "InternalServerException":
|
|
2454
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2455
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "InvalidPaginationException":
|
|
2457
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
2458
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "ResourceNotFoundException":
|
|
2460
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "ValidationException":
|
|
2463
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2464
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2465
|
-
default:
|
|
2466
|
-
const parsedBody = parsedOutput.body;
|
|
2467
|
-
return throwDefaultError({
|
|
2468
|
-
output,
|
|
2469
|
-
parsedBody,
|
|
2470
|
-
errorCode
|
|
2471
|
-
});
|
|
2472
|
-
}
|
|
2473
|
-
}, "de_ListUsageLimitsCommandError");
|
|
2474
1367
|
var de_ListWorkgroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2475
1368
|
if (output.statusCode >= 300) {
|
|
2476
|
-
return
|
|
1369
|
+
return de_CommandError(output, context);
|
|
2477
1370
|
}
|
|
2478
1371
|
const data = await parseBody(output.body, context);
|
|
2479
1372
|
let contents = {};
|
|
@@ -2484,31 +1377,9 @@ var de_ListWorkgroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2484
1377
|
};
|
|
2485
1378
|
return response;
|
|
2486
1379
|
}, "de_ListWorkgroupsCommand");
|
|
2487
|
-
var de_ListWorkgroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2488
|
-
const parsedOutput = {
|
|
2489
|
-
...output,
|
|
2490
|
-
body: await parseErrorBody(output.body, context)
|
|
2491
|
-
};
|
|
2492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
|
-
switch (errorCode) {
|
|
2494
|
-
case "InternalServerException":
|
|
2495
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2496
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "ValidationException":
|
|
2498
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2500
|
-
default:
|
|
2501
|
-
const parsedBody = parsedOutput.body;
|
|
2502
|
-
return throwDefaultError({
|
|
2503
|
-
output,
|
|
2504
|
-
parsedBody,
|
|
2505
|
-
errorCode
|
|
2506
|
-
});
|
|
2507
|
-
}
|
|
2508
|
-
}, "de_ListWorkgroupsCommandError");
|
|
2509
1380
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2510
1381
|
if (output.statusCode >= 300) {
|
|
2511
|
-
return
|
|
1382
|
+
return de_CommandError(output, context);
|
|
2512
1383
|
}
|
|
2513
1384
|
const data = await parseBody(output.body, context);
|
|
2514
1385
|
let contents = {};
|
|
@@ -2519,40 +1390,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2519
1390
|
};
|
|
2520
1391
|
return response;
|
|
2521
1392
|
}, "de_PutResourcePolicyCommand");
|
|
2522
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2523
|
-
const parsedOutput = {
|
|
2524
|
-
...output,
|
|
2525
|
-
body: await parseErrorBody(output.body, context)
|
|
2526
|
-
};
|
|
2527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
|
-
switch (errorCode) {
|
|
2529
|
-
case "ConflictException":
|
|
2530
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2531
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "InternalServerException":
|
|
2533
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2534
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2535
|
-
case "ResourceNotFoundException":
|
|
2536
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2537
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2538
|
-
case "ServiceQuotaExceededException":
|
|
2539
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
2540
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2541
|
-
case "ValidationException":
|
|
2542
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2543
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2544
|
-
default:
|
|
2545
|
-
const parsedBody = parsedOutput.body;
|
|
2546
|
-
return throwDefaultError({
|
|
2547
|
-
output,
|
|
2548
|
-
parsedBody,
|
|
2549
|
-
errorCode
|
|
2550
|
-
});
|
|
2551
|
-
}
|
|
2552
|
-
}, "de_PutResourcePolicyCommandError");
|
|
2553
1393
|
var de_RestoreFromRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2554
1394
|
if (output.statusCode >= 300) {
|
|
2555
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
2556
1396
|
}
|
|
2557
1397
|
const data = await parseBody(output.body, context);
|
|
2558
1398
|
let contents = {};
|
|
@@ -2563,37 +1403,9 @@ var de_RestoreFromRecoveryPointCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2563
1403
|
};
|
|
2564
1404
|
return response;
|
|
2565
1405
|
}, "de_RestoreFromRecoveryPointCommand");
|
|
2566
|
-
var de_RestoreFromRecoveryPointCommandError = /* @__PURE__ */ __name(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 "ConflictException":
|
|
2574
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2575
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "InternalServerException":
|
|
2577
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2578
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "ResourceNotFoundException":
|
|
2580
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "ValidationException":
|
|
2583
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2584
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2585
|
-
default:
|
|
2586
|
-
const parsedBody = parsedOutput.body;
|
|
2587
|
-
return throwDefaultError({
|
|
2588
|
-
output,
|
|
2589
|
-
parsedBody,
|
|
2590
|
-
errorCode
|
|
2591
|
-
});
|
|
2592
|
-
}
|
|
2593
|
-
}, "de_RestoreFromRecoveryPointCommandError");
|
|
2594
1406
|
var de_RestoreFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2595
1407
|
if (output.statusCode >= 300) {
|
|
2596
|
-
return
|
|
1408
|
+
return de_CommandError(output, context);
|
|
2597
1409
|
}
|
|
2598
1410
|
const data = await parseBody(output.body, context);
|
|
2599
1411
|
let contents = {};
|
|
@@ -2604,40 +1416,9 @@ var de_RestoreFromSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2604
1416
|
};
|
|
2605
1417
|
return response;
|
|
2606
1418
|
}, "de_RestoreFromSnapshotCommand");
|
|
2607
|
-
var de_RestoreFromSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2608
|
-
const parsedOutput = {
|
|
2609
|
-
...output,
|
|
2610
|
-
body: await parseErrorBody(output.body, context)
|
|
2611
|
-
};
|
|
2612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2613
|
-
switch (errorCode) {
|
|
2614
|
-
case "ConflictException":
|
|
2615
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2616
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "InternalServerException":
|
|
2618
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2619
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "ResourceNotFoundException":
|
|
2621
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2622
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "ServiceQuotaExceededException":
|
|
2624
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
2625
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "ValidationException":
|
|
2627
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2628
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2629
|
-
default:
|
|
2630
|
-
const parsedBody = parsedOutput.body;
|
|
2631
|
-
return throwDefaultError({
|
|
2632
|
-
output,
|
|
2633
|
-
parsedBody,
|
|
2634
|
-
errorCode
|
|
2635
|
-
});
|
|
2636
|
-
}
|
|
2637
|
-
}, "de_RestoreFromSnapshotCommandError");
|
|
2638
1419
|
var de_RestoreTableFromRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2639
1420
|
if (output.statusCode >= 300) {
|
|
2640
|
-
return
|
|
1421
|
+
return de_CommandError(output, context);
|
|
2641
1422
|
}
|
|
2642
1423
|
const data = await parseBody(output.body, context);
|
|
2643
1424
|
let contents = {};
|
|
@@ -2648,122 +1429,35 @@ var de_RestoreTableFromRecoveryPointCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2648
1429
|
};
|
|
2649
1430
|
return response;
|
|
2650
1431
|
}, "de_RestoreTableFromRecoveryPointCommand");
|
|
2651
|
-
var de_RestoreTableFromRecoveryPointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2652
|
-
const parsedOutput = {
|
|
2653
|
-
...output,
|
|
2654
|
-
body: await parseErrorBody(output.body, context)
|
|
2655
|
-
};
|
|
2656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2657
|
-
switch (errorCode) {
|
|
2658
|
-
case "ConflictException":
|
|
2659
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2660
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "InternalServerException":
|
|
2662
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "ResourceNotFoundException":
|
|
2665
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "ValidationException":
|
|
2668
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2669
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2670
|
-
default:
|
|
2671
|
-
const parsedBody = parsedOutput.body;
|
|
2672
|
-
return throwDefaultError({
|
|
2673
|
-
output,
|
|
2674
|
-
parsedBody,
|
|
2675
|
-
errorCode
|
|
2676
|
-
});
|
|
2677
|
-
}
|
|
2678
|
-
}, "de_RestoreTableFromRecoveryPointCommandError");
|
|
2679
1432
|
var de_RestoreTableFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2680
1433
|
if (output.statusCode >= 300) {
|
|
2681
|
-
return
|
|
1434
|
+
return de_CommandError(output, context);
|
|
2682
1435
|
}
|
|
2683
1436
|
const data = await parseBody(output.body, context);
|
|
2684
1437
|
let contents = {};
|
|
2685
1438
|
contents = de_RestoreTableFromSnapshotResponse(data, context);
|
|
2686
1439
|
const response = {
|
|
2687
1440
|
$metadata: deserializeMetadata(output),
|
|
2688
|
-
...contents
|
|
2689
|
-
};
|
|
2690
|
-
return response;
|
|
2691
|
-
}, "de_RestoreTableFromSnapshotCommand");
|
|
2692
|
-
var
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
body: await parseErrorBody(output.body, context)
|
|
2696
|
-
};
|
|
2697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
|
-
switch (errorCode) {
|
|
2699
|
-
case "ConflictException":
|
|
2700
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2701
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "InternalServerException":
|
|
2703
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2704
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2705
|
-
case "ResourceNotFoundException":
|
|
2706
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2707
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "ValidationException":
|
|
2709
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2711
|
-
default:
|
|
2712
|
-
const parsedBody = parsedOutput.body;
|
|
2713
|
-
return throwDefaultError({
|
|
2714
|
-
output,
|
|
2715
|
-
parsedBody,
|
|
2716
|
-
errorCode
|
|
2717
|
-
});
|
|
2718
|
-
}
|
|
2719
|
-
}, "de_RestoreTableFromSnapshotCommandError");
|
|
2720
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2721
|
-
if (output.statusCode >= 300) {
|
|
2722
|
-
return de_TagResourceCommandError(output, context);
|
|
2723
|
-
}
|
|
2724
|
-
const data = await parseBody(output.body, context);
|
|
2725
|
-
let contents = {};
|
|
2726
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2727
|
-
const response = {
|
|
2728
|
-
$metadata: deserializeMetadata(output),
|
|
2729
|
-
...contents
|
|
2730
|
-
};
|
|
2731
|
-
return response;
|
|
2732
|
-
}, "de_TagResourceCommand");
|
|
2733
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2734
|
-
const parsedOutput = {
|
|
2735
|
-
...output,
|
|
2736
|
-
body: await parseErrorBody(output.body, context)
|
|
2737
|
-
};
|
|
2738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2739
|
-
switch (errorCode) {
|
|
2740
|
-
case "InternalServerException":
|
|
2741
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2742
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "ResourceNotFoundException":
|
|
2744
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2746
|
-
case "ThrottlingException":
|
|
2747
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2748
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "TooManyTagsException":
|
|
2750
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
2751
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "ValidationException":
|
|
2753
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2755
|
-
default:
|
|
2756
|
-
const parsedBody = parsedOutput.body;
|
|
2757
|
-
return throwDefaultError({
|
|
2758
|
-
output,
|
|
2759
|
-
parsedBody,
|
|
2760
|
-
errorCode
|
|
2761
|
-
});
|
|
1441
|
+
...contents
|
|
1442
|
+
};
|
|
1443
|
+
return response;
|
|
1444
|
+
}, "de_RestoreTableFromSnapshotCommand");
|
|
1445
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1446
|
+
if (output.statusCode >= 300) {
|
|
1447
|
+
return de_CommandError(output, context);
|
|
2762
1448
|
}
|
|
2763
|
-
|
|
1449
|
+
const data = await parseBody(output.body, context);
|
|
1450
|
+
let contents = {};
|
|
1451
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1452
|
+
const response = {
|
|
1453
|
+
$metadata: deserializeMetadata(output),
|
|
1454
|
+
...contents
|
|
1455
|
+
};
|
|
1456
|
+
return response;
|
|
1457
|
+
}, "de_TagResourceCommand");
|
|
2764
1458
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2765
1459
|
if (output.statusCode >= 300) {
|
|
2766
|
-
return
|
|
1460
|
+
return de_CommandError(output, context);
|
|
2767
1461
|
}
|
|
2768
1462
|
const data = await parseBody(output.body, context);
|
|
2769
1463
|
let contents = {};
|
|
@@ -2774,37 +1468,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2774
1468
|
};
|
|
2775
1469
|
return response;
|
|
2776
1470
|
}, "de_UntagResourceCommand");
|
|
2777
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2778
|
-
const parsedOutput = {
|
|
2779
|
-
...output,
|
|
2780
|
-
body: await parseErrorBody(output.body, context)
|
|
2781
|
-
};
|
|
2782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2783
|
-
switch (errorCode) {
|
|
2784
|
-
case "InternalServerException":
|
|
2785
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2786
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "ResourceNotFoundException":
|
|
2788
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2789
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ThrottlingException":
|
|
2791
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2792
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "ValidationException":
|
|
2794
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2795
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2796
|
-
default:
|
|
2797
|
-
const parsedBody = parsedOutput.body;
|
|
2798
|
-
return throwDefaultError({
|
|
2799
|
-
output,
|
|
2800
|
-
parsedBody,
|
|
2801
|
-
errorCode
|
|
2802
|
-
});
|
|
2803
|
-
}
|
|
2804
|
-
}, "de_UntagResourceCommandError");
|
|
2805
1471
|
var de_UpdateCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2806
1472
|
if (output.statusCode >= 300) {
|
|
2807
|
-
return
|
|
1473
|
+
return de_CommandError(output, context);
|
|
2808
1474
|
}
|
|
2809
1475
|
const data = await parseBody(output.body, context);
|
|
2810
1476
|
let contents = {};
|
|
@@ -2815,43 +1481,9 @@ var de_UpdateCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2815
1481
|
};
|
|
2816
1482
|
return response;
|
|
2817
1483
|
}, "de_UpdateCustomDomainAssociationCommand");
|
|
2818
|
-
var de_UpdateCustomDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2819
|
-
const parsedOutput = {
|
|
2820
|
-
...output,
|
|
2821
|
-
body: await parseErrorBody(output.body, context)
|
|
2822
|
-
};
|
|
2823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2824
|
-
switch (errorCode) {
|
|
2825
|
-
case "AccessDeniedException":
|
|
2826
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ConflictException":
|
|
2829
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2830
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "InternalServerException":
|
|
2832
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "ResourceNotFoundException":
|
|
2835
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "ThrottlingException":
|
|
2838
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2839
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "ValidationException":
|
|
2841
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2842
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2843
|
-
default:
|
|
2844
|
-
const parsedBody = parsedOutput.body;
|
|
2845
|
-
return throwDefaultError({
|
|
2846
|
-
output,
|
|
2847
|
-
parsedBody,
|
|
2848
|
-
errorCode
|
|
2849
|
-
});
|
|
2850
|
-
}
|
|
2851
|
-
}, "de_UpdateCustomDomainAssociationCommandError");
|
|
2852
1484
|
var de_UpdateEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2853
1485
|
if (output.statusCode >= 300) {
|
|
2854
|
-
return
|
|
1486
|
+
return de_CommandError(output, context);
|
|
2855
1487
|
}
|
|
2856
1488
|
const data = await parseBody(output.body, context);
|
|
2857
1489
|
let contents = {};
|
|
@@ -2862,40 +1494,9 @@ var de_UpdateEndpointAccessCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2862
1494
|
};
|
|
2863
1495
|
return response;
|
|
2864
1496
|
}, "de_UpdateEndpointAccessCommand");
|
|
2865
|
-
var de_UpdateEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2866
|
-
const parsedOutput = {
|
|
2867
|
-
...output,
|
|
2868
|
-
body: await parseErrorBody(output.body, context)
|
|
2869
|
-
};
|
|
2870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
|
-
switch (errorCode) {
|
|
2872
|
-
case "AccessDeniedException":
|
|
2873
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2874
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2875
|
-
case "ConflictException":
|
|
2876
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2877
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2878
|
-
case "InternalServerException":
|
|
2879
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2880
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "ResourceNotFoundException":
|
|
2882
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2883
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "ValidationException":
|
|
2885
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2886
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2887
|
-
default:
|
|
2888
|
-
const parsedBody = parsedOutput.body;
|
|
2889
|
-
return throwDefaultError({
|
|
2890
|
-
output,
|
|
2891
|
-
parsedBody,
|
|
2892
|
-
errorCode
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
}, "de_UpdateEndpointAccessCommandError");
|
|
2896
1497
|
var de_UpdateNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2897
1498
|
if (output.statusCode >= 300) {
|
|
2898
|
-
return
|
|
1499
|
+
return de_CommandError(output, context);
|
|
2899
1500
|
}
|
|
2900
1501
|
const data = await parseBody(output.body, context);
|
|
2901
1502
|
let contents = {};
|
|
@@ -2906,37 +1507,9 @@ var de_UpdateNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2906
1507
|
};
|
|
2907
1508
|
return response;
|
|
2908
1509
|
}, "de_UpdateNamespaceCommand");
|
|
2909
|
-
var de_UpdateNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2910
|
-
const parsedOutput = {
|
|
2911
|
-
...output,
|
|
2912
|
-
body: await parseErrorBody(output.body, context)
|
|
2913
|
-
};
|
|
2914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2915
|
-
switch (errorCode) {
|
|
2916
|
-
case "ConflictException":
|
|
2917
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2918
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2919
|
-
case "InternalServerException":
|
|
2920
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2921
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "ResourceNotFoundException":
|
|
2923
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2924
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "ValidationException":
|
|
2926
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2927
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2928
|
-
default:
|
|
2929
|
-
const parsedBody = parsedOutput.body;
|
|
2930
|
-
return throwDefaultError({
|
|
2931
|
-
output,
|
|
2932
|
-
parsedBody,
|
|
2933
|
-
errorCode
|
|
2934
|
-
});
|
|
2935
|
-
}
|
|
2936
|
-
}, "de_UpdateNamespaceCommandError");
|
|
2937
1510
|
var de_UpdateScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2938
1511
|
if (output.statusCode >= 300) {
|
|
2939
|
-
return
|
|
1512
|
+
return de_CommandError(output, context);
|
|
2940
1513
|
}
|
|
2941
1514
|
const data = await parseBody(output.body, context);
|
|
2942
1515
|
let contents = {};
|
|
@@ -2947,37 +1520,9 @@ var de_UpdateScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2947
1520
|
};
|
|
2948
1521
|
return response;
|
|
2949
1522
|
}, "de_UpdateScheduledActionCommand");
|
|
2950
|
-
var de_UpdateScheduledActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2951
|
-
const parsedOutput = {
|
|
2952
|
-
...output,
|
|
2953
|
-
body: await parseErrorBody(output.body, context)
|
|
2954
|
-
};
|
|
2955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2956
|
-
switch (errorCode) {
|
|
2957
|
-
case "ConflictException":
|
|
2958
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2959
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "InternalServerException":
|
|
2961
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2962
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "ResourceNotFoundException":
|
|
2964
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2965
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "ValidationException":
|
|
2967
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2968
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2969
|
-
default:
|
|
2970
|
-
const parsedBody = parsedOutput.body;
|
|
2971
|
-
return throwDefaultError({
|
|
2972
|
-
output,
|
|
2973
|
-
parsedBody,
|
|
2974
|
-
errorCode
|
|
2975
|
-
});
|
|
2976
|
-
}
|
|
2977
|
-
}, "de_UpdateScheduledActionCommandError");
|
|
2978
1523
|
var de_UpdateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2979
1524
|
if (output.statusCode >= 300) {
|
|
2980
|
-
return
|
|
1525
|
+
return de_CommandError(output, context);
|
|
2981
1526
|
}
|
|
2982
1527
|
const data = await parseBody(output.body, context);
|
|
2983
1528
|
let contents = {};
|
|
@@ -2988,37 +1533,9 @@ var de_UpdateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2988
1533
|
};
|
|
2989
1534
|
return response;
|
|
2990
1535
|
}, "de_UpdateSnapshotCommand");
|
|
2991
|
-
var de_UpdateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2992
|
-
const parsedOutput = {
|
|
2993
|
-
...output,
|
|
2994
|
-
body: await parseErrorBody(output.body, context)
|
|
2995
|
-
};
|
|
2996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2997
|
-
switch (errorCode) {
|
|
2998
|
-
case "ConflictException":
|
|
2999
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
3000
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "InternalServerException":
|
|
3002
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
3003
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "ResourceNotFoundException":
|
|
3005
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
3006
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3007
|
-
case "ValidationException":
|
|
3008
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
3009
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3010
|
-
default:
|
|
3011
|
-
const parsedBody = parsedOutput.body;
|
|
3012
|
-
return throwDefaultError({
|
|
3013
|
-
output,
|
|
3014
|
-
parsedBody,
|
|
3015
|
-
errorCode
|
|
3016
|
-
});
|
|
3017
|
-
}
|
|
3018
|
-
}, "de_UpdateSnapshotCommandError");
|
|
3019
1536
|
var de_UpdateSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3020
1537
|
if (output.statusCode >= 300) {
|
|
3021
|
-
return
|
|
1538
|
+
return de_CommandError(output, context);
|
|
3022
1539
|
}
|
|
3023
1540
|
const data = await parseBody(output.body, context);
|
|
3024
1541
|
let contents = {};
|
|
@@ -3029,40 +1546,9 @@ var de_UpdateSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3029
1546
|
};
|
|
3030
1547
|
return response;
|
|
3031
1548
|
}, "de_UpdateSnapshotCopyConfigurationCommand");
|
|
3032
|
-
var de_UpdateSnapshotCopyConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3033
|
-
const parsedOutput = {
|
|
3034
|
-
...output,
|
|
3035
|
-
body: await parseErrorBody(output.body, context)
|
|
3036
|
-
};
|
|
3037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
|
-
switch (errorCode) {
|
|
3039
|
-
case "AccessDeniedException":
|
|
3040
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
3041
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "ConflictException":
|
|
3043
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
3044
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "InternalServerException":
|
|
3046
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
3047
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "ResourceNotFoundException":
|
|
3049
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
3050
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3051
|
-
case "ValidationException":
|
|
3052
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
3053
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3054
|
-
default:
|
|
3055
|
-
const parsedBody = parsedOutput.body;
|
|
3056
|
-
return throwDefaultError({
|
|
3057
|
-
output,
|
|
3058
|
-
parsedBody,
|
|
3059
|
-
errorCode
|
|
3060
|
-
});
|
|
3061
|
-
}
|
|
3062
|
-
}, "de_UpdateSnapshotCopyConfigurationCommandError");
|
|
3063
1549
|
var de_UpdateUsageLimitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3064
1550
|
if (output.statusCode >= 300) {
|
|
3065
|
-
return
|
|
1551
|
+
return de_CommandError(output, context);
|
|
3066
1552
|
}
|
|
3067
1553
|
const data = await parseBody(output.body, context);
|
|
3068
1554
|
let contents = {};
|
|
@@ -3073,37 +1559,9 @@ var de_UpdateUsageLimitCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3073
1559
|
};
|
|
3074
1560
|
return response;
|
|
3075
1561
|
}, "de_UpdateUsageLimitCommand");
|
|
3076
|
-
var de_UpdateUsageLimitCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3077
|
-
const parsedOutput = {
|
|
3078
|
-
...output,
|
|
3079
|
-
body: await parseErrorBody(output.body, context)
|
|
3080
|
-
};
|
|
3081
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3082
|
-
switch (errorCode) {
|
|
3083
|
-
case "ConflictException":
|
|
3084
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
3085
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "InternalServerException":
|
|
3087
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
3088
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "ResourceNotFoundException":
|
|
3090
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
3091
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3092
|
-
case "ValidationException":
|
|
3093
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
3094
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3095
|
-
default:
|
|
3096
|
-
const parsedBody = parsedOutput.body;
|
|
3097
|
-
return throwDefaultError({
|
|
3098
|
-
output,
|
|
3099
|
-
parsedBody,
|
|
3100
|
-
errorCode
|
|
3101
|
-
});
|
|
3102
|
-
}
|
|
3103
|
-
}, "de_UpdateUsageLimitCommandError");
|
|
3104
1562
|
var de_UpdateWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3105
1563
|
if (output.statusCode >= 300) {
|
|
3106
|
-
return
|
|
1564
|
+
return de_CommandError(output, context);
|
|
3107
1565
|
}
|
|
3108
1566
|
const data = await parseBody(output.body, context);
|
|
3109
1567
|
let contents = {};
|
|
@@ -3114,7 +1572,7 @@ var de_UpdateWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3114
1572
|
};
|
|
3115
1573
|
return response;
|
|
3116
1574
|
}, "de_UpdateWorkgroupCommand");
|
|
3117
|
-
var
|
|
1575
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3118
1576
|
const parsedOutput = {
|
|
3119
1577
|
...output,
|
|
3120
1578
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3124,18 +1582,33 @@ var de_UpdateWorkgroupCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
3124
1582
|
case "ConflictException":
|
|
3125
1583
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
3126
1584
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3127
|
-
case "InsufficientCapacityException":
|
|
3128
|
-
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
3129
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
3130
1585
|
case "InternalServerException":
|
|
3131
1586
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
3132
1587
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3133
1588
|
case "ResourceNotFoundException":
|
|
3134
1589
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
3135
1590
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1591
|
+
case "ServiceQuotaExceededException":
|
|
1592
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1593
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1594
|
+
case "TooManyTagsException":
|
|
1595
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
1596
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3136
1597
|
case "ValidationException":
|
|
3137
1598
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
3138
1599
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1600
|
+
case "AccessDeniedException":
|
|
1601
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1602
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1603
|
+
case "ThrottlingException":
|
|
1604
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1605
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1606
|
+
case "InsufficientCapacityException":
|
|
1607
|
+
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
1608
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1609
|
+
case "InvalidPaginationException":
|
|
1610
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1611
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
3139
1612
|
default:
|
|
3140
1613
|
const parsedBody = parsedOutput.body;
|
|
3141
1614
|
return throwDefaultError({
|
|
@@ -3144,7 +1617,7 @@ var de_UpdateWorkgroupCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
3144
1617
|
errorCode
|
|
3145
1618
|
});
|
|
3146
1619
|
}
|
|
3147
|
-
}, "
|
|
1620
|
+
}, "de_CommandError");
|
|
3148
1621
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3149
1622
|
const body = parsedOutput.body;
|
|
3150
1623
|
const deserialized = (0, import_smithy_client._json)(body);
|