@aws-sdk/client-sqs 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 +129 -905
- package/dist-es/SQSClient.js +8 -5
- package/dist-es/protocols/Aws_json1_0.js +140 -919
- package/dist-types/SQSClient.d.ts +3 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/SQSClient.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -88,6 +88,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
88
88
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
89
89
|
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
90
90
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
91
|
+
var import_middleware_sdk_sqs = require("@aws-sdk/middleware-sdk-sqs");
|
|
91
92
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
92
93
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
93
94
|
var import_core = require("@smithy/core");
|
|
@@ -188,16 +189,18 @@ var _SQSClient = class _SQSClient extends import_smithy_client.Client {
|
|
|
188
189
|
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
189
190
|
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
190
191
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
191
|
-
const _config_6 = (0,
|
|
192
|
-
const _config_7 = (0,
|
|
193
|
-
const _config_8 =
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
const _config_6 = (0, import_middleware_sdk_sqs.resolveQueueUrlConfig)(_config_5);
|
|
193
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
194
|
+
const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
|
|
195
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
196
|
+
super(_config_9);
|
|
197
|
+
this.config = _config_9;
|
|
196
198
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
197
199
|
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
198
200
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
199
201
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
200
202
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
203
|
+
this.middlewareStack.use((0, import_middleware_sdk_sqs.getQueueUrlPlugin)(this.config));
|
|
201
204
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
202
205
|
this.middlewareStack.use(
|
|
203
206
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
@@ -912,7 +915,7 @@ var se_UntagQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
912
915
|
}, "se_UntagQueueCommand");
|
|
913
916
|
var de_AddPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
917
|
if (output.statusCode >= 300) {
|
|
915
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
916
919
|
}
|
|
917
920
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
918
921
|
const response = {
|
|
@@ -920,44 +923,9 @@ var de_AddPermissionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
920
923
|
};
|
|
921
924
|
return response;
|
|
922
925
|
}, "de_AddPermissionCommand");
|
|
923
|
-
var de_AddPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
924
|
-
const parsedOutput = {
|
|
925
|
-
...output,
|
|
926
|
-
body: await parseErrorBody(output.body, context)
|
|
927
|
-
};
|
|
928
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "InvalidAddress":
|
|
932
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
933
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
934
|
-
case "InvalidSecurity":
|
|
935
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
936
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
937
|
-
case "OverLimit":
|
|
938
|
-
case "com.amazonaws.sqs#OverLimit":
|
|
939
|
-
throw await de_OverLimitRes(parsedOutput, context);
|
|
940
|
-
case "QueueDoesNotExist":
|
|
941
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
942
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
943
|
-
case "RequestThrottled":
|
|
944
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
945
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
946
|
-
case "UnsupportedOperation":
|
|
947
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
948
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
949
|
-
default:
|
|
950
|
-
const parsedBody = parsedOutput.body;
|
|
951
|
-
return throwDefaultError({
|
|
952
|
-
output,
|
|
953
|
-
parsedBody,
|
|
954
|
-
errorCode
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
}, "de_AddPermissionCommandError");
|
|
958
926
|
var de_CancelMessageMoveTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
959
927
|
if (output.statusCode >= 300) {
|
|
960
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
961
929
|
}
|
|
962
930
|
const data = await parseBody(output.body, context);
|
|
963
931
|
let contents = {};
|
|
@@ -968,41 +936,9 @@ var de_CancelMessageMoveTaskCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
968
936
|
};
|
|
969
937
|
return response;
|
|
970
938
|
}, "de_CancelMessageMoveTaskCommand");
|
|
971
|
-
var de_CancelMessageMoveTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
972
|
-
const parsedOutput = {
|
|
973
|
-
...output,
|
|
974
|
-
body: await parseErrorBody(output.body, context)
|
|
975
|
-
};
|
|
976
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
|
-
switch (errorCode) {
|
|
979
|
-
case "InvalidAddress":
|
|
980
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
981
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
982
|
-
case "InvalidSecurity":
|
|
983
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
984
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
985
|
-
case "RequestThrottled":
|
|
986
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
987
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
988
|
-
case "ResourceNotFoundException":
|
|
989
|
-
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
990
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
991
|
-
case "UnsupportedOperation":
|
|
992
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
993
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
994
|
-
default:
|
|
995
|
-
const parsedBody = parsedOutput.body;
|
|
996
|
-
return throwDefaultError({
|
|
997
|
-
output,
|
|
998
|
-
parsedBody,
|
|
999
|
-
errorCode
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
}, "de_CancelMessageMoveTaskCommandError");
|
|
1003
939
|
var de_ChangeMessageVisibilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
940
|
if (output.statusCode >= 300) {
|
|
1005
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1006
942
|
}
|
|
1007
943
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1008
944
|
const response = {
|
|
@@ -1010,47 +946,9 @@ var de_ChangeMessageVisibilityCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1010
946
|
};
|
|
1011
947
|
return response;
|
|
1012
948
|
}, "de_ChangeMessageVisibilityCommand");
|
|
1013
|
-
var de_ChangeMessageVisibilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context)
|
|
1017
|
-
};
|
|
1018
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "InvalidAddress":
|
|
1022
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1023
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1024
|
-
case "InvalidSecurity":
|
|
1025
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1026
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1027
|
-
case "MessageNotInflight":
|
|
1028
|
-
case "com.amazonaws.sqs#MessageNotInflight":
|
|
1029
|
-
throw await de_MessageNotInflightRes(parsedOutput, context);
|
|
1030
|
-
case "QueueDoesNotExist":
|
|
1031
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1032
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1033
|
-
case "ReceiptHandleIsInvalid":
|
|
1034
|
-
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
1035
|
-
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
1036
|
-
case "RequestThrottled":
|
|
1037
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1038
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1039
|
-
case "UnsupportedOperation":
|
|
1040
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1041
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1042
|
-
default:
|
|
1043
|
-
const parsedBody = parsedOutput.body;
|
|
1044
|
-
return throwDefaultError({
|
|
1045
|
-
output,
|
|
1046
|
-
parsedBody,
|
|
1047
|
-
errorCode
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
}, "de_ChangeMessageVisibilityCommandError");
|
|
1051
949
|
var de_ChangeMessageVisibilityBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
950
|
if (output.statusCode >= 300) {
|
|
1053
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1054
952
|
}
|
|
1055
953
|
const data = await parseBody(output.body, context);
|
|
1056
954
|
let contents = {};
|
|
@@ -1061,53 +959,9 @@ var de_ChangeMessageVisibilityBatchCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1061
959
|
};
|
|
1062
960
|
return response;
|
|
1063
961
|
}, "de_ChangeMessageVisibilityBatchCommand");
|
|
1064
|
-
var de_ChangeMessageVisibilityBatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1065
|
-
const parsedOutput = {
|
|
1066
|
-
...output,
|
|
1067
|
-
body: await parseErrorBody(output.body, context)
|
|
1068
|
-
};
|
|
1069
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
|
-
switch (errorCode) {
|
|
1072
|
-
case "BatchEntryIdsNotDistinct":
|
|
1073
|
-
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
1074
|
-
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
1075
|
-
case "EmptyBatchRequest":
|
|
1076
|
-
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
1077
|
-
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
1078
|
-
case "InvalidAddress":
|
|
1079
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1080
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1081
|
-
case "InvalidBatchEntryId":
|
|
1082
|
-
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
1083
|
-
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
1084
|
-
case "InvalidSecurity":
|
|
1085
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1086
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1087
|
-
case "QueueDoesNotExist":
|
|
1088
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1089
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1090
|
-
case "RequestThrottled":
|
|
1091
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1092
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1093
|
-
case "TooManyEntriesInBatchRequest":
|
|
1094
|
-
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
1095
|
-
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
1096
|
-
case "UnsupportedOperation":
|
|
1097
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1098
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1099
|
-
default:
|
|
1100
|
-
const parsedBody = parsedOutput.body;
|
|
1101
|
-
return throwDefaultError({
|
|
1102
|
-
output,
|
|
1103
|
-
parsedBody,
|
|
1104
|
-
errorCode
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
}, "de_ChangeMessageVisibilityBatchCommandError");
|
|
1108
962
|
var de_CreateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1109
963
|
if (output.statusCode >= 300) {
|
|
1110
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1111
965
|
}
|
|
1112
966
|
const data = await parseBody(output.body, context);
|
|
1113
967
|
let contents = {};
|
|
@@ -1118,50 +972,9 @@ var de_CreateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1118
972
|
};
|
|
1119
973
|
return response;
|
|
1120
974
|
}, "de_CreateQueueCommand");
|
|
1121
|
-
var de_CreateQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1122
|
-
const parsedOutput = {
|
|
1123
|
-
...output,
|
|
1124
|
-
body: await parseErrorBody(output.body, context)
|
|
1125
|
-
};
|
|
1126
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
|
-
switch (errorCode) {
|
|
1129
|
-
case "InvalidAddress":
|
|
1130
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1131
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1132
|
-
case "InvalidAttributeName":
|
|
1133
|
-
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
1134
|
-
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
1135
|
-
case "InvalidAttributeValue":
|
|
1136
|
-
case "com.amazonaws.sqs#InvalidAttributeValue":
|
|
1137
|
-
throw await de_InvalidAttributeValueRes(parsedOutput, context);
|
|
1138
|
-
case "InvalidSecurity":
|
|
1139
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1140
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1141
|
-
case "QueueDeletedRecently":
|
|
1142
|
-
case "com.amazonaws.sqs#QueueDeletedRecently":
|
|
1143
|
-
throw await de_QueueDeletedRecentlyRes(parsedOutput, context);
|
|
1144
|
-
case "QueueNameExists":
|
|
1145
|
-
case "com.amazonaws.sqs#QueueNameExists":
|
|
1146
|
-
throw await de_QueueNameExistsRes(parsedOutput, context);
|
|
1147
|
-
case "RequestThrottled":
|
|
1148
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1149
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1150
|
-
case "UnsupportedOperation":
|
|
1151
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1152
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1153
|
-
default:
|
|
1154
|
-
const parsedBody = parsedOutput.body;
|
|
1155
|
-
return throwDefaultError({
|
|
1156
|
-
output,
|
|
1157
|
-
parsedBody,
|
|
1158
|
-
errorCode
|
|
1159
|
-
});
|
|
1160
|
-
}
|
|
1161
|
-
}, "de_CreateQueueCommandError");
|
|
1162
975
|
var de_DeleteMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1163
976
|
if (output.statusCode >= 300) {
|
|
1164
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1165
978
|
}
|
|
1166
979
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1167
980
|
const response = {
|
|
@@ -1169,47 +982,9 @@ var de_DeleteMessageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1169
982
|
};
|
|
1170
983
|
return response;
|
|
1171
984
|
}, "de_DeleteMessageCommand");
|
|
1172
|
-
var de_DeleteMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1173
|
-
const parsedOutput = {
|
|
1174
|
-
...output,
|
|
1175
|
-
body: await parseErrorBody(output.body, context)
|
|
1176
|
-
};
|
|
1177
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "InvalidAddress":
|
|
1181
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1182
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1183
|
-
case "InvalidIdFormat":
|
|
1184
|
-
case "com.amazonaws.sqs#InvalidIdFormat":
|
|
1185
|
-
throw await de_InvalidIdFormatRes(parsedOutput, context);
|
|
1186
|
-
case "InvalidSecurity":
|
|
1187
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1188
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1189
|
-
case "QueueDoesNotExist":
|
|
1190
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1191
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1192
|
-
case "ReceiptHandleIsInvalid":
|
|
1193
|
-
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
1194
|
-
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
1195
|
-
case "RequestThrottled":
|
|
1196
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1197
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1198
|
-
case "UnsupportedOperation":
|
|
1199
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1200
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1201
|
-
default:
|
|
1202
|
-
const parsedBody = parsedOutput.body;
|
|
1203
|
-
return throwDefaultError({
|
|
1204
|
-
output,
|
|
1205
|
-
parsedBody,
|
|
1206
|
-
errorCode
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
}, "de_DeleteMessageCommandError");
|
|
1210
985
|
var de_DeleteMessageBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1211
986
|
if (output.statusCode >= 300) {
|
|
1212
|
-
return
|
|
987
|
+
return de_CommandError(output, context);
|
|
1213
988
|
}
|
|
1214
989
|
const data = await parseBody(output.body, context);
|
|
1215
990
|
let contents = {};
|
|
@@ -1220,95 +995,19 @@ var de_DeleteMessageBatchCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1220
995
|
};
|
|
1221
996
|
return response;
|
|
1222
997
|
}, "de_DeleteMessageBatchCommand");
|
|
1223
|
-
var
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
switch (errorCode) {
|
|
1231
|
-
case "BatchEntryIdsNotDistinct":
|
|
1232
|
-
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
1233
|
-
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
1234
|
-
case "EmptyBatchRequest":
|
|
1235
|
-
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
1236
|
-
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
1237
|
-
case "InvalidAddress":
|
|
1238
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1239
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1240
|
-
case "InvalidBatchEntryId":
|
|
1241
|
-
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
1242
|
-
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
1243
|
-
case "InvalidSecurity":
|
|
1244
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1245
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1246
|
-
case "QueueDoesNotExist":
|
|
1247
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1248
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1249
|
-
case "RequestThrottled":
|
|
1250
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1251
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1252
|
-
case "TooManyEntriesInBatchRequest":
|
|
1253
|
-
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
1254
|
-
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
1255
|
-
case "UnsupportedOperation":
|
|
1256
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1257
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1258
|
-
default:
|
|
1259
|
-
const parsedBody = parsedOutput.body;
|
|
1260
|
-
return throwDefaultError({
|
|
1261
|
-
output,
|
|
1262
|
-
parsedBody,
|
|
1263
|
-
errorCode
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
}, "de_DeleteMessageBatchCommandError");
|
|
1267
|
-
var de_DeleteQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1268
|
-
if (output.statusCode >= 300) {
|
|
1269
|
-
return de_DeleteQueueCommandError(output, context);
|
|
1270
|
-
}
|
|
1271
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1272
|
-
const response = {
|
|
1273
|
-
$metadata: deserializeMetadata(output)
|
|
998
|
+
var de_DeleteQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
999
|
+
if (output.statusCode >= 300) {
|
|
1000
|
+
return de_CommandError(output, context);
|
|
1001
|
+
}
|
|
1002
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1003
|
+
const response = {
|
|
1004
|
+
$metadata: deserializeMetadata(output)
|
|
1274
1005
|
};
|
|
1275
1006
|
return response;
|
|
1276
1007
|
}, "de_DeleteQueueCommand");
|
|
1277
|
-
var de_DeleteQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1278
|
-
const parsedOutput = {
|
|
1279
|
-
...output,
|
|
1280
|
-
body: await parseErrorBody(output.body, context)
|
|
1281
|
-
};
|
|
1282
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
|
-
switch (errorCode) {
|
|
1285
|
-
case "InvalidAddress":
|
|
1286
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1287
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1288
|
-
case "InvalidSecurity":
|
|
1289
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1290
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1291
|
-
case "QueueDoesNotExist":
|
|
1292
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1293
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1294
|
-
case "RequestThrottled":
|
|
1295
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1296
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1297
|
-
case "UnsupportedOperation":
|
|
1298
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1299
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1300
|
-
default:
|
|
1301
|
-
const parsedBody = parsedOutput.body;
|
|
1302
|
-
return throwDefaultError({
|
|
1303
|
-
output,
|
|
1304
|
-
parsedBody,
|
|
1305
|
-
errorCode
|
|
1306
|
-
});
|
|
1307
|
-
}
|
|
1308
|
-
}, "de_DeleteQueueCommandError");
|
|
1309
1008
|
var de_GetQueueAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1310
1009
|
if (output.statusCode >= 300) {
|
|
1311
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1312
1011
|
}
|
|
1313
1012
|
const data = await parseBody(output.body, context);
|
|
1314
1013
|
let contents = {};
|
|
@@ -1319,44 +1018,9 @@ var de_GetQueueAttributesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1319
1018
|
};
|
|
1320
1019
|
return response;
|
|
1321
1020
|
}, "de_GetQueueAttributesCommand");
|
|
1322
|
-
var de_GetQueueAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
|
-
const parsedOutput = {
|
|
1324
|
-
...output,
|
|
1325
|
-
body: await parseErrorBody(output.body, context)
|
|
1326
|
-
};
|
|
1327
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
-
switch (errorCode) {
|
|
1330
|
-
case "InvalidAddress":
|
|
1331
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1332
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1333
|
-
case "InvalidAttributeName":
|
|
1334
|
-
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
1335
|
-
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
1336
|
-
case "InvalidSecurity":
|
|
1337
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1338
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1339
|
-
case "QueueDoesNotExist":
|
|
1340
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1341
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1342
|
-
case "RequestThrottled":
|
|
1343
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1344
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1345
|
-
case "UnsupportedOperation":
|
|
1346
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1347
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1348
|
-
default:
|
|
1349
|
-
const parsedBody = parsedOutput.body;
|
|
1350
|
-
return throwDefaultError({
|
|
1351
|
-
output,
|
|
1352
|
-
parsedBody,
|
|
1353
|
-
errorCode
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
}, "de_GetQueueAttributesCommandError");
|
|
1357
1021
|
var de_GetQueueUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1358
1022
|
if (output.statusCode >= 300) {
|
|
1359
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
1360
1024
|
}
|
|
1361
1025
|
const data = await parseBody(output.body, context);
|
|
1362
1026
|
let contents = {};
|
|
@@ -1367,41 +1031,9 @@ var de_GetQueueUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1367
1031
|
};
|
|
1368
1032
|
return response;
|
|
1369
1033
|
}, "de_GetQueueUrlCommand");
|
|
1370
|
-
var de_GetQueueUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1371
|
-
const parsedOutput = {
|
|
1372
|
-
...output,
|
|
1373
|
-
body: await parseErrorBody(output.body, context)
|
|
1374
|
-
};
|
|
1375
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
-
switch (errorCode) {
|
|
1378
|
-
case "InvalidAddress":
|
|
1379
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1380
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1381
|
-
case "InvalidSecurity":
|
|
1382
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1383
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1384
|
-
case "QueueDoesNotExist":
|
|
1385
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1386
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1387
|
-
case "RequestThrottled":
|
|
1388
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1389
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1390
|
-
case "UnsupportedOperation":
|
|
1391
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1392
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1393
|
-
default:
|
|
1394
|
-
const parsedBody = parsedOutput.body;
|
|
1395
|
-
return throwDefaultError({
|
|
1396
|
-
output,
|
|
1397
|
-
parsedBody,
|
|
1398
|
-
errorCode
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
}, "de_GetQueueUrlCommandError");
|
|
1402
1034
|
var de_ListDeadLetterSourceQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1403
1035
|
if (output.statusCode >= 300) {
|
|
1404
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
1405
1037
|
}
|
|
1406
1038
|
const data = await parseBody(output.body, context);
|
|
1407
1039
|
let contents = {};
|
|
@@ -1412,41 +1044,9 @@ var de_ListDeadLetterSourceQueuesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1412
1044
|
};
|
|
1413
1045
|
return response;
|
|
1414
1046
|
}, "de_ListDeadLetterSourceQueuesCommand");
|
|
1415
|
-
var de_ListDeadLetterSourceQueuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
|
-
const parsedOutput = {
|
|
1417
|
-
...output,
|
|
1418
|
-
body: await parseErrorBody(output.body, context)
|
|
1419
|
-
};
|
|
1420
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
-
switch (errorCode) {
|
|
1423
|
-
case "InvalidAddress":
|
|
1424
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1425
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1426
|
-
case "InvalidSecurity":
|
|
1427
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1428
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1429
|
-
case "QueueDoesNotExist":
|
|
1430
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1431
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1432
|
-
case "RequestThrottled":
|
|
1433
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1434
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1435
|
-
case "UnsupportedOperation":
|
|
1436
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1437
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1438
|
-
default:
|
|
1439
|
-
const parsedBody = parsedOutput.body;
|
|
1440
|
-
return throwDefaultError({
|
|
1441
|
-
output,
|
|
1442
|
-
parsedBody,
|
|
1443
|
-
errorCode
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
}, "de_ListDeadLetterSourceQueuesCommandError");
|
|
1447
1047
|
var de_ListMessageMoveTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1448
1048
|
if (output.statusCode >= 300) {
|
|
1449
|
-
return
|
|
1049
|
+
return de_CommandError(output, context);
|
|
1450
1050
|
}
|
|
1451
1051
|
const data = await parseBody(output.body, context);
|
|
1452
1052
|
let contents = {};
|
|
@@ -1457,41 +1057,9 @@ var de_ListMessageMoveTasksCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1457
1057
|
};
|
|
1458
1058
|
return response;
|
|
1459
1059
|
}, "de_ListMessageMoveTasksCommand");
|
|
1460
|
-
var de_ListMessageMoveTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context)
|
|
1464
|
-
};
|
|
1465
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
-
switch (errorCode) {
|
|
1468
|
-
case "InvalidAddress":
|
|
1469
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1470
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1471
|
-
case "InvalidSecurity":
|
|
1472
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1473
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1474
|
-
case "RequestThrottled":
|
|
1475
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1476
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1477
|
-
case "ResourceNotFoundException":
|
|
1478
|
-
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
1479
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "UnsupportedOperation":
|
|
1481
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1482
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1483
|
-
default:
|
|
1484
|
-
const parsedBody = parsedOutput.body;
|
|
1485
|
-
return throwDefaultError({
|
|
1486
|
-
output,
|
|
1487
|
-
parsedBody,
|
|
1488
|
-
errorCode
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
}, "de_ListMessageMoveTasksCommandError");
|
|
1492
1060
|
var de_ListQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1493
1061
|
if (output.statusCode >= 300) {
|
|
1494
|
-
return
|
|
1062
|
+
return de_CommandError(output, context);
|
|
1495
1063
|
}
|
|
1496
1064
|
const data = await parseBody(output.body, context);
|
|
1497
1065
|
let contents = {};
|
|
@@ -1502,38 +1070,9 @@ var de_ListQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1502
1070
|
};
|
|
1503
1071
|
return response;
|
|
1504
1072
|
}, "de_ListQueuesCommand");
|
|
1505
|
-
var de_ListQueuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1506
|
-
const parsedOutput = {
|
|
1507
|
-
...output,
|
|
1508
|
-
body: await parseErrorBody(output.body, context)
|
|
1509
|
-
};
|
|
1510
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
|
-
switch (errorCode) {
|
|
1513
|
-
case "InvalidAddress":
|
|
1514
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1515
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1516
|
-
case "InvalidSecurity":
|
|
1517
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1518
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1519
|
-
case "RequestThrottled":
|
|
1520
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1521
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1522
|
-
case "UnsupportedOperation":
|
|
1523
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1524
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1525
|
-
default:
|
|
1526
|
-
const parsedBody = parsedOutput.body;
|
|
1527
|
-
return throwDefaultError({
|
|
1528
|
-
output,
|
|
1529
|
-
parsedBody,
|
|
1530
|
-
errorCode
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
}, "de_ListQueuesCommandError");
|
|
1534
1073
|
var de_ListQueueTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1535
1074
|
if (output.statusCode >= 300) {
|
|
1536
|
-
return
|
|
1075
|
+
return de_CommandError(output, context);
|
|
1537
1076
|
}
|
|
1538
1077
|
const data = await parseBody(output.body, context);
|
|
1539
1078
|
let contents = {};
|
|
@@ -1544,41 +1083,9 @@ var de_ListQueueTagsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1544
1083
|
};
|
|
1545
1084
|
return response;
|
|
1546
1085
|
}, "de_ListQueueTagsCommand");
|
|
1547
|
-
var de_ListQueueTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context)
|
|
1551
|
-
};
|
|
1552
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
-
switch (errorCode) {
|
|
1555
|
-
case "InvalidAddress":
|
|
1556
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1557
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1558
|
-
case "InvalidSecurity":
|
|
1559
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1560
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1561
|
-
case "QueueDoesNotExist":
|
|
1562
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1563
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1564
|
-
case "RequestThrottled":
|
|
1565
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1566
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1567
|
-
case "UnsupportedOperation":
|
|
1568
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1569
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1570
|
-
default:
|
|
1571
|
-
const parsedBody = parsedOutput.body;
|
|
1572
|
-
return throwDefaultError({
|
|
1573
|
-
output,
|
|
1574
|
-
parsedBody,
|
|
1575
|
-
errorCode
|
|
1576
|
-
});
|
|
1577
|
-
}
|
|
1578
|
-
}, "de_ListQueueTagsCommandError");
|
|
1579
1086
|
var de_PurgeQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1580
1087
|
if (output.statusCode >= 300) {
|
|
1581
|
-
return
|
|
1088
|
+
return de_CommandError(output, context);
|
|
1582
1089
|
}
|
|
1583
1090
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1584
1091
|
const response = {
|
|
@@ -1586,44 +1093,9 @@ var de_PurgeQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1586
1093
|
};
|
|
1587
1094
|
return response;
|
|
1588
1095
|
}, "de_PurgeQueueCommand");
|
|
1589
|
-
var de_PurgeQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1590
|
-
const parsedOutput = {
|
|
1591
|
-
...output,
|
|
1592
|
-
body: await parseErrorBody(output.body, context)
|
|
1593
|
-
};
|
|
1594
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "InvalidAddress":
|
|
1598
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1599
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1600
|
-
case "InvalidSecurity":
|
|
1601
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1602
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1603
|
-
case "PurgeQueueInProgress":
|
|
1604
|
-
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
1605
|
-
throw await de_PurgeQueueInProgressRes(parsedOutput, context);
|
|
1606
|
-
case "QueueDoesNotExist":
|
|
1607
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1608
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1609
|
-
case "RequestThrottled":
|
|
1610
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1611
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1612
|
-
case "UnsupportedOperation":
|
|
1613
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1614
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1615
|
-
default:
|
|
1616
|
-
const parsedBody = parsedOutput.body;
|
|
1617
|
-
return throwDefaultError({
|
|
1618
|
-
output,
|
|
1619
|
-
parsedBody,
|
|
1620
|
-
errorCode
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
}, "de_PurgeQueueCommandError");
|
|
1624
1096
|
var de_ReceiveMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1625
1097
|
if (output.statusCode >= 300) {
|
|
1626
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
1627
1099
|
}
|
|
1628
1100
|
const data = await parseBody(output.body, context);
|
|
1629
1101
|
let contents = {};
|
|
@@ -1634,176 +1106,32 @@ var de_ReceiveMessageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1634
1106
|
};
|
|
1635
1107
|
return response;
|
|
1636
1108
|
}, "de_ReceiveMessageCommand");
|
|
1637
|
-
var
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1651
|
-
case "KmsAccessDenied":
|
|
1652
|
-
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
1653
|
-
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
1654
|
-
case "KmsDisabled":
|
|
1655
|
-
case "com.amazonaws.sqs#KmsDisabled":
|
|
1656
|
-
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
1657
|
-
case "KmsInvalidKeyUsage":
|
|
1658
|
-
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
1659
|
-
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
1660
|
-
case "KmsInvalidState":
|
|
1661
|
-
case "com.amazonaws.sqs#KmsInvalidState":
|
|
1662
|
-
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
1663
|
-
case "KmsNotFound":
|
|
1664
|
-
case "com.amazonaws.sqs#KmsNotFound":
|
|
1665
|
-
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
1666
|
-
case "KmsOptInRequired":
|
|
1667
|
-
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
1668
|
-
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
1669
|
-
case "KmsThrottled":
|
|
1670
|
-
case "com.amazonaws.sqs#KmsThrottled":
|
|
1671
|
-
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
1672
|
-
case "OverLimit":
|
|
1673
|
-
case "com.amazonaws.sqs#OverLimit":
|
|
1674
|
-
throw await de_OverLimitRes(parsedOutput, context);
|
|
1675
|
-
case "QueueDoesNotExist":
|
|
1676
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1677
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1678
|
-
case "RequestThrottled":
|
|
1679
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1680
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1681
|
-
case "UnsupportedOperation":
|
|
1682
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1683
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1684
|
-
default:
|
|
1685
|
-
const parsedBody = parsedOutput.body;
|
|
1686
|
-
return throwDefaultError({
|
|
1687
|
-
output,
|
|
1688
|
-
parsedBody,
|
|
1689
|
-
errorCode
|
|
1690
|
-
});
|
|
1691
|
-
}
|
|
1692
|
-
}, "de_ReceiveMessageCommandError");
|
|
1693
|
-
var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1694
|
-
if (output.statusCode >= 300) {
|
|
1695
|
-
return de_RemovePermissionCommandError(output, context);
|
|
1696
|
-
}
|
|
1697
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1698
|
-
const response = {
|
|
1699
|
-
$metadata: deserializeMetadata(output)
|
|
1700
|
-
};
|
|
1701
|
-
return response;
|
|
1702
|
-
}, "de_RemovePermissionCommand");
|
|
1703
|
-
var de_RemovePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
|
-
const parsedOutput = {
|
|
1705
|
-
...output,
|
|
1706
|
-
body: await parseErrorBody(output.body, context)
|
|
1707
|
-
};
|
|
1708
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "InvalidAddress":
|
|
1712
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1713
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1714
|
-
case "InvalidSecurity":
|
|
1715
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1716
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1717
|
-
case "QueueDoesNotExist":
|
|
1718
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1719
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1720
|
-
case "RequestThrottled":
|
|
1721
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1722
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1723
|
-
case "UnsupportedOperation":
|
|
1724
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1725
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1726
|
-
default:
|
|
1727
|
-
const parsedBody = parsedOutput.body;
|
|
1728
|
-
return throwDefaultError({
|
|
1729
|
-
output,
|
|
1730
|
-
parsedBody,
|
|
1731
|
-
errorCode
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
}, "de_RemovePermissionCommandError");
|
|
1735
|
-
var de_SendMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1736
|
-
if (output.statusCode >= 300) {
|
|
1737
|
-
return de_SendMessageCommandError(output, context);
|
|
1738
|
-
}
|
|
1739
|
-
const data = await parseBody(output.body, context);
|
|
1740
|
-
let contents = {};
|
|
1741
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1742
|
-
const response = {
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
...contents
|
|
1745
|
-
};
|
|
1746
|
-
return response;
|
|
1747
|
-
}, "de_SendMessageCommand");
|
|
1748
|
-
var de_SendMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1749
|
-
const parsedOutput = {
|
|
1750
|
-
...output,
|
|
1751
|
-
body: await parseErrorBody(output.body, context)
|
|
1752
|
-
};
|
|
1753
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
|
-
switch (errorCode) {
|
|
1756
|
-
case "InvalidAddress":
|
|
1757
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1758
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1759
|
-
case "InvalidMessageContents":
|
|
1760
|
-
case "com.amazonaws.sqs#InvalidMessageContents":
|
|
1761
|
-
throw await de_InvalidMessageContentsRes(parsedOutput, context);
|
|
1762
|
-
case "InvalidSecurity":
|
|
1763
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1764
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1765
|
-
case "KmsAccessDenied":
|
|
1766
|
-
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
1767
|
-
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
1768
|
-
case "KmsDisabled":
|
|
1769
|
-
case "com.amazonaws.sqs#KmsDisabled":
|
|
1770
|
-
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
1771
|
-
case "KmsInvalidKeyUsage":
|
|
1772
|
-
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
1773
|
-
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
1774
|
-
case "KmsInvalidState":
|
|
1775
|
-
case "com.amazonaws.sqs#KmsInvalidState":
|
|
1776
|
-
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
1777
|
-
case "KmsNotFound":
|
|
1778
|
-
case "com.amazonaws.sqs#KmsNotFound":
|
|
1779
|
-
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
1780
|
-
case "KmsOptInRequired":
|
|
1781
|
-
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
1782
|
-
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
1783
|
-
case "KmsThrottled":
|
|
1784
|
-
case "com.amazonaws.sqs#KmsThrottled":
|
|
1785
|
-
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
1786
|
-
case "QueueDoesNotExist":
|
|
1787
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1788
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1789
|
-
case "RequestThrottled":
|
|
1790
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1791
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1792
|
-
case "UnsupportedOperation":
|
|
1793
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1794
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1795
|
-
default:
|
|
1796
|
-
const parsedBody = parsedOutput.body;
|
|
1797
|
-
return throwDefaultError({
|
|
1798
|
-
output,
|
|
1799
|
-
parsedBody,
|
|
1800
|
-
errorCode
|
|
1801
|
-
});
|
|
1109
|
+
var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1110
|
+
if (output.statusCode >= 300) {
|
|
1111
|
+
return de_CommandError(output, context);
|
|
1112
|
+
}
|
|
1113
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1114
|
+
const response = {
|
|
1115
|
+
$metadata: deserializeMetadata(output)
|
|
1116
|
+
};
|
|
1117
|
+
return response;
|
|
1118
|
+
}, "de_RemovePermissionCommand");
|
|
1119
|
+
var de_SendMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
+
if (output.statusCode >= 300) {
|
|
1121
|
+
return de_CommandError(output, context);
|
|
1802
1122
|
}
|
|
1803
|
-
|
|
1123
|
+
const data = await parseBody(output.body, context);
|
|
1124
|
+
let contents = {};
|
|
1125
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1126
|
+
const response = {
|
|
1127
|
+
$metadata: deserializeMetadata(output),
|
|
1128
|
+
...contents
|
|
1129
|
+
};
|
|
1130
|
+
return response;
|
|
1131
|
+
}, "de_SendMessageCommand");
|
|
1804
1132
|
var de_SendMessageBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1805
1133
|
if (output.statusCode >= 300) {
|
|
1806
|
-
return
|
|
1134
|
+
return de_CommandError(output, context);
|
|
1807
1135
|
}
|
|
1808
1136
|
const data = await parseBody(output.body, context);
|
|
1809
1137
|
let contents = {};
|
|
@@ -1814,77 +1142,9 @@ var de_SendMessageBatchCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1814
1142
|
};
|
|
1815
1143
|
return response;
|
|
1816
1144
|
}, "de_SendMessageBatchCommand");
|
|
1817
|
-
var de_SendMessageBatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1818
|
-
const parsedOutput = {
|
|
1819
|
-
...output,
|
|
1820
|
-
body: await parseErrorBody(output.body, context)
|
|
1821
|
-
};
|
|
1822
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
|
-
switch (errorCode) {
|
|
1825
|
-
case "BatchEntryIdsNotDistinct":
|
|
1826
|
-
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
1827
|
-
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
1828
|
-
case "BatchRequestTooLong":
|
|
1829
|
-
case "com.amazonaws.sqs#BatchRequestTooLong":
|
|
1830
|
-
throw await de_BatchRequestTooLongRes(parsedOutput, context);
|
|
1831
|
-
case "EmptyBatchRequest":
|
|
1832
|
-
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
1833
|
-
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
1834
|
-
case "InvalidAddress":
|
|
1835
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1836
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1837
|
-
case "InvalidBatchEntryId":
|
|
1838
|
-
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
1839
|
-
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
1840
|
-
case "InvalidSecurity":
|
|
1841
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1842
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1843
|
-
case "KmsAccessDenied":
|
|
1844
|
-
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
1845
|
-
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
1846
|
-
case "KmsDisabled":
|
|
1847
|
-
case "com.amazonaws.sqs#KmsDisabled":
|
|
1848
|
-
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
1849
|
-
case "KmsInvalidKeyUsage":
|
|
1850
|
-
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
1851
|
-
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
1852
|
-
case "KmsInvalidState":
|
|
1853
|
-
case "com.amazonaws.sqs#KmsInvalidState":
|
|
1854
|
-
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
1855
|
-
case "KmsNotFound":
|
|
1856
|
-
case "com.amazonaws.sqs#KmsNotFound":
|
|
1857
|
-
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
1858
|
-
case "KmsOptInRequired":
|
|
1859
|
-
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
1860
|
-
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
1861
|
-
case "KmsThrottled":
|
|
1862
|
-
case "com.amazonaws.sqs#KmsThrottled":
|
|
1863
|
-
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
1864
|
-
case "QueueDoesNotExist":
|
|
1865
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1866
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1867
|
-
case "RequestThrottled":
|
|
1868
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1869
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1870
|
-
case "TooManyEntriesInBatchRequest":
|
|
1871
|
-
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
1872
|
-
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
1873
|
-
case "UnsupportedOperation":
|
|
1874
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1875
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1876
|
-
default:
|
|
1877
|
-
const parsedBody = parsedOutput.body;
|
|
1878
|
-
return throwDefaultError({
|
|
1879
|
-
output,
|
|
1880
|
-
parsedBody,
|
|
1881
|
-
errorCode
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
}, "de_SendMessageBatchCommandError");
|
|
1885
1145
|
var de_SetQueueAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1886
1146
|
if (output.statusCode >= 300) {
|
|
1887
|
-
return
|
|
1147
|
+
return de_CommandError(output, context);
|
|
1888
1148
|
}
|
|
1889
1149
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1890
1150
|
const response = {
|
|
@@ -1892,50 +1152,9 @@ var de_SetQueueAttributesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1892
1152
|
};
|
|
1893
1153
|
return response;
|
|
1894
1154
|
}, "de_SetQueueAttributesCommand");
|
|
1895
|
-
var de_SetQueueAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1896
|
-
const parsedOutput = {
|
|
1897
|
-
...output,
|
|
1898
|
-
body: await parseErrorBody(output.body, context)
|
|
1899
|
-
};
|
|
1900
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
-
switch (errorCode) {
|
|
1903
|
-
case "InvalidAddress":
|
|
1904
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1905
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1906
|
-
case "InvalidAttributeName":
|
|
1907
|
-
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
1908
|
-
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
1909
|
-
case "InvalidAttributeValue":
|
|
1910
|
-
case "com.amazonaws.sqs#InvalidAttributeValue":
|
|
1911
|
-
throw await de_InvalidAttributeValueRes(parsedOutput, context);
|
|
1912
|
-
case "InvalidSecurity":
|
|
1913
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1914
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1915
|
-
case "OverLimit":
|
|
1916
|
-
case "com.amazonaws.sqs#OverLimit":
|
|
1917
|
-
throw await de_OverLimitRes(parsedOutput, context);
|
|
1918
|
-
case "QueueDoesNotExist":
|
|
1919
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1920
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1921
|
-
case "RequestThrottled":
|
|
1922
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1923
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1924
|
-
case "UnsupportedOperation":
|
|
1925
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1926
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1927
|
-
default:
|
|
1928
|
-
const parsedBody = parsedOutput.body;
|
|
1929
|
-
return throwDefaultError({
|
|
1930
|
-
output,
|
|
1931
|
-
parsedBody,
|
|
1932
|
-
errorCode
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
}, "de_SetQueueAttributesCommandError");
|
|
1936
1155
|
var de_StartMessageMoveTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1937
1156
|
if (output.statusCode >= 300) {
|
|
1938
|
-
return
|
|
1157
|
+
return de_CommandError(output, context);
|
|
1939
1158
|
}
|
|
1940
1159
|
const data = await parseBody(output.body, context);
|
|
1941
1160
|
let contents = {};
|
|
@@ -1946,41 +1165,9 @@ var de_StartMessageMoveTaskCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1946
1165
|
};
|
|
1947
1166
|
return response;
|
|
1948
1167
|
}, "de_StartMessageMoveTaskCommand");
|
|
1949
|
-
var de_StartMessageMoveTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1950
|
-
const parsedOutput = {
|
|
1951
|
-
...output,
|
|
1952
|
-
body: await parseErrorBody(output.body, context)
|
|
1953
|
-
};
|
|
1954
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
-
switch (errorCode) {
|
|
1957
|
-
case "InvalidAddress":
|
|
1958
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1959
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1960
|
-
case "InvalidSecurity":
|
|
1961
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1962
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1963
|
-
case "RequestThrottled":
|
|
1964
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1965
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1966
|
-
case "ResourceNotFoundException":
|
|
1967
|
-
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
1968
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "UnsupportedOperation":
|
|
1970
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1971
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1972
|
-
default:
|
|
1973
|
-
const parsedBody = parsedOutput.body;
|
|
1974
|
-
return throwDefaultError({
|
|
1975
|
-
output,
|
|
1976
|
-
parsedBody,
|
|
1977
|
-
errorCode
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
}, "de_StartMessageMoveTaskCommandError");
|
|
1981
1168
|
var de_TagQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1982
1169
|
if (output.statusCode >= 300) {
|
|
1983
|
-
return
|
|
1170
|
+
return de_CommandError(output, context);
|
|
1984
1171
|
}
|
|
1985
1172
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1986
1173
|
const response = {
|
|
@@ -1988,41 +1175,9 @@ var de_TagQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1988
1175
|
};
|
|
1989
1176
|
return response;
|
|
1990
1177
|
}, "de_TagQueueCommand");
|
|
1991
|
-
var de_TagQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1992
|
-
const parsedOutput = {
|
|
1993
|
-
...output,
|
|
1994
|
-
body: await parseErrorBody(output.body, context)
|
|
1995
|
-
};
|
|
1996
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1998
|
-
switch (errorCode) {
|
|
1999
|
-
case "InvalidAddress":
|
|
2000
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
2001
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
2002
|
-
case "InvalidSecurity":
|
|
2003
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
2004
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
2005
|
-
case "QueueDoesNotExist":
|
|
2006
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
2007
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
2008
|
-
case "RequestThrottled":
|
|
2009
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
2010
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
2011
|
-
case "UnsupportedOperation":
|
|
2012
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
2013
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2014
|
-
default:
|
|
2015
|
-
const parsedBody = parsedOutput.body;
|
|
2016
|
-
return throwDefaultError({
|
|
2017
|
-
output,
|
|
2018
|
-
parsedBody,
|
|
2019
|
-
errorCode
|
|
2020
|
-
});
|
|
2021
|
-
}
|
|
2022
|
-
}, "de_TagQueueCommandError");
|
|
2023
1178
|
var de_UntagQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2024
1179
|
if (output.statusCode >= 300) {
|
|
2025
|
-
return
|
|
1180
|
+
return de_CommandError(output, context);
|
|
2026
1181
|
}
|
|
2027
1182
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2028
1183
|
const response = {
|
|
@@ -2030,7 +1185,7 @@ var de_UntagQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2030
1185
|
};
|
|
2031
1186
|
return response;
|
|
2032
1187
|
}, "de_UntagQueueCommand");
|
|
2033
|
-
var
|
|
1188
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2034
1189
|
const parsedOutput = {
|
|
2035
1190
|
...output,
|
|
2036
1191
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2044,6 +1199,9 @@ var de_UntagQueueCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2044
1199
|
case "InvalidSecurity":
|
|
2045
1200
|
case "com.amazonaws.sqs#InvalidSecurity":
|
|
2046
1201
|
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1202
|
+
case "OverLimit":
|
|
1203
|
+
case "com.amazonaws.sqs#OverLimit":
|
|
1204
|
+
throw await de_OverLimitRes(parsedOutput, context);
|
|
2047
1205
|
case "QueueDoesNotExist":
|
|
2048
1206
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
2049
1207
|
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
@@ -2053,6 +1211,72 @@ var de_UntagQueueCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2053
1211
|
case "UnsupportedOperation":
|
|
2054
1212
|
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
2055
1213
|
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1214
|
+
case "ResourceNotFoundException":
|
|
1215
|
+
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
1216
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1217
|
+
case "MessageNotInflight":
|
|
1218
|
+
case "com.amazonaws.sqs#MessageNotInflight":
|
|
1219
|
+
throw await de_MessageNotInflightRes(parsedOutput, context);
|
|
1220
|
+
case "ReceiptHandleIsInvalid":
|
|
1221
|
+
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
1222
|
+
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
1223
|
+
case "BatchEntryIdsNotDistinct":
|
|
1224
|
+
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
1225
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
1226
|
+
case "EmptyBatchRequest":
|
|
1227
|
+
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
1228
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
1229
|
+
case "InvalidBatchEntryId":
|
|
1230
|
+
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
1231
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
1232
|
+
case "TooManyEntriesInBatchRequest":
|
|
1233
|
+
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
1234
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
1235
|
+
case "InvalidAttributeName":
|
|
1236
|
+
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
1237
|
+
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
1238
|
+
case "InvalidAttributeValue":
|
|
1239
|
+
case "com.amazonaws.sqs#InvalidAttributeValue":
|
|
1240
|
+
throw await de_InvalidAttributeValueRes(parsedOutput, context);
|
|
1241
|
+
case "QueueDeletedRecently":
|
|
1242
|
+
case "com.amazonaws.sqs#QueueDeletedRecently":
|
|
1243
|
+
throw await de_QueueDeletedRecentlyRes(parsedOutput, context);
|
|
1244
|
+
case "QueueNameExists":
|
|
1245
|
+
case "com.amazonaws.sqs#QueueNameExists":
|
|
1246
|
+
throw await de_QueueNameExistsRes(parsedOutput, context);
|
|
1247
|
+
case "InvalidIdFormat":
|
|
1248
|
+
case "com.amazonaws.sqs#InvalidIdFormat":
|
|
1249
|
+
throw await de_InvalidIdFormatRes(parsedOutput, context);
|
|
1250
|
+
case "PurgeQueueInProgress":
|
|
1251
|
+
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
1252
|
+
throw await de_PurgeQueueInProgressRes(parsedOutput, context);
|
|
1253
|
+
case "KmsAccessDenied":
|
|
1254
|
+
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
1255
|
+
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
1256
|
+
case "KmsDisabled":
|
|
1257
|
+
case "com.amazonaws.sqs#KmsDisabled":
|
|
1258
|
+
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
1259
|
+
case "KmsInvalidKeyUsage":
|
|
1260
|
+
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
1261
|
+
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
1262
|
+
case "KmsInvalidState":
|
|
1263
|
+
case "com.amazonaws.sqs#KmsInvalidState":
|
|
1264
|
+
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
1265
|
+
case "KmsNotFound":
|
|
1266
|
+
case "com.amazonaws.sqs#KmsNotFound":
|
|
1267
|
+
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
1268
|
+
case "KmsOptInRequired":
|
|
1269
|
+
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
1270
|
+
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
1271
|
+
case "KmsThrottled":
|
|
1272
|
+
case "com.amazonaws.sqs#KmsThrottled":
|
|
1273
|
+
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
1274
|
+
case "InvalidMessageContents":
|
|
1275
|
+
case "com.amazonaws.sqs#InvalidMessageContents":
|
|
1276
|
+
throw await de_InvalidMessageContentsRes(parsedOutput, context);
|
|
1277
|
+
case "BatchRequestTooLong":
|
|
1278
|
+
case "com.amazonaws.sqs#BatchRequestTooLong":
|
|
1279
|
+
throw await de_BatchRequestTooLongRes(parsedOutput, context);
|
|
2056
1280
|
default:
|
|
2057
1281
|
const parsedBody = parsedOutput.body;
|
|
2058
1282
|
return throwDefaultError({
|
|
@@ -2061,7 +1285,7 @@ var de_UntagQueueCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2061
1285
|
errorCode
|
|
2062
1286
|
});
|
|
2063
1287
|
}
|
|
2064
|
-
}, "
|
|
1288
|
+
}, "de_CommandError");
|
|
2065
1289
|
var de_BatchEntryIdsNotDistinctRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2066
1290
|
const body = parsedOutput.body;
|
|
2067
1291
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -2976,7 +2200,7 @@ __name(_PurgeQueueCommand, "PurgeQueueCommand");
|
|
|
2976
2200
|
var PurgeQueueCommand = _PurgeQueueCommand;
|
|
2977
2201
|
|
|
2978
2202
|
// src/commands/ReceiveMessageCommand.ts
|
|
2979
|
-
|
|
2203
|
+
|
|
2980
2204
|
|
|
2981
2205
|
|
|
2982
2206
|
|