@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
|
@@ -143,7 +143,7 @@ export const se_UntagQueueCommand = async (input, context) => {
|
|
|
143
143
|
};
|
|
144
144
|
export const de_AddPermissionCommand = async (output, context) => {
|
|
145
145
|
if (output.statusCode >= 300) {
|
|
146
|
-
return
|
|
146
|
+
return de_CommandError(output, context);
|
|
147
147
|
}
|
|
148
148
|
await collectBody(output.body, context);
|
|
149
149
|
const response = {
|
|
@@ -151,44 +151,9 @@ export const de_AddPermissionCommand = async (output, context) => {
|
|
|
151
151
|
};
|
|
152
152
|
return response;
|
|
153
153
|
};
|
|
154
|
-
const de_AddPermissionCommandError = async (output, context) => {
|
|
155
|
-
const parsedOutput = {
|
|
156
|
-
...output,
|
|
157
|
-
body: await parseErrorBody(output.body, context),
|
|
158
|
-
};
|
|
159
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
161
|
-
switch (errorCode) {
|
|
162
|
-
case "InvalidAddress":
|
|
163
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
164
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
165
|
-
case "InvalidSecurity":
|
|
166
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
167
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
168
|
-
case "OverLimit":
|
|
169
|
-
case "com.amazonaws.sqs#OverLimit":
|
|
170
|
-
throw await de_OverLimitRes(parsedOutput, context);
|
|
171
|
-
case "QueueDoesNotExist":
|
|
172
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
173
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
174
|
-
case "RequestThrottled":
|
|
175
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
176
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
177
|
-
case "UnsupportedOperation":
|
|
178
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
179
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
180
|
-
default:
|
|
181
|
-
const parsedBody = parsedOutput.body;
|
|
182
|
-
return throwDefaultError({
|
|
183
|
-
output,
|
|
184
|
-
parsedBody,
|
|
185
|
-
errorCode,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
154
|
export const de_CancelMessageMoveTaskCommand = async (output, context) => {
|
|
190
155
|
if (output.statusCode >= 300) {
|
|
191
|
-
return
|
|
156
|
+
return de_CommandError(output, context);
|
|
192
157
|
}
|
|
193
158
|
const data = await parseBody(output.body, context);
|
|
194
159
|
let contents = {};
|
|
@@ -199,41 +164,9 @@ export const de_CancelMessageMoveTaskCommand = async (output, context) => {
|
|
|
199
164
|
};
|
|
200
165
|
return response;
|
|
201
166
|
};
|
|
202
|
-
const de_CancelMessageMoveTaskCommandError = async (output, context) => {
|
|
203
|
-
const parsedOutput = {
|
|
204
|
-
...output,
|
|
205
|
-
body: await parseErrorBody(output.body, context),
|
|
206
|
-
};
|
|
207
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
209
|
-
switch (errorCode) {
|
|
210
|
-
case "InvalidAddress":
|
|
211
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
212
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
213
|
-
case "InvalidSecurity":
|
|
214
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
215
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
216
|
-
case "RequestThrottled":
|
|
217
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
218
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
219
|
-
case "ResourceNotFoundException":
|
|
220
|
-
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
222
|
-
case "UnsupportedOperation":
|
|
223
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
224
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
225
|
-
default:
|
|
226
|
-
const parsedBody = parsedOutput.body;
|
|
227
|
-
return throwDefaultError({
|
|
228
|
-
output,
|
|
229
|
-
parsedBody,
|
|
230
|
-
errorCode,
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
167
|
export const de_ChangeMessageVisibilityCommand = async (output, context) => {
|
|
235
168
|
if (output.statusCode >= 300) {
|
|
236
|
-
return
|
|
169
|
+
return de_CommandError(output, context);
|
|
237
170
|
}
|
|
238
171
|
await collectBody(output.body, context);
|
|
239
172
|
const response = {
|
|
@@ -241,47 +174,9 @@ export const de_ChangeMessageVisibilityCommand = async (output, context) => {
|
|
|
241
174
|
};
|
|
242
175
|
return response;
|
|
243
176
|
};
|
|
244
|
-
const de_ChangeMessageVisibilityCommandError = async (output, context) => {
|
|
245
|
-
const parsedOutput = {
|
|
246
|
-
...output,
|
|
247
|
-
body: await parseErrorBody(output.body, context),
|
|
248
|
-
};
|
|
249
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
251
|
-
switch (errorCode) {
|
|
252
|
-
case "InvalidAddress":
|
|
253
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
254
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
255
|
-
case "InvalidSecurity":
|
|
256
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
257
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
258
|
-
case "MessageNotInflight":
|
|
259
|
-
case "com.amazonaws.sqs#MessageNotInflight":
|
|
260
|
-
throw await de_MessageNotInflightRes(parsedOutput, context);
|
|
261
|
-
case "QueueDoesNotExist":
|
|
262
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
263
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
264
|
-
case "ReceiptHandleIsInvalid":
|
|
265
|
-
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
266
|
-
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
267
|
-
case "RequestThrottled":
|
|
268
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
269
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
270
|
-
case "UnsupportedOperation":
|
|
271
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
272
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
273
|
-
default:
|
|
274
|
-
const parsedBody = parsedOutput.body;
|
|
275
|
-
return throwDefaultError({
|
|
276
|
-
output,
|
|
277
|
-
parsedBody,
|
|
278
|
-
errorCode,
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
177
|
export const de_ChangeMessageVisibilityBatchCommand = async (output, context) => {
|
|
283
178
|
if (output.statusCode >= 300) {
|
|
284
|
-
return
|
|
179
|
+
return de_CommandError(output, context);
|
|
285
180
|
}
|
|
286
181
|
const data = await parseBody(output.body, context);
|
|
287
182
|
let contents = {};
|
|
@@ -292,53 +187,9 @@ export const de_ChangeMessageVisibilityBatchCommand = async (output, context) =>
|
|
|
292
187
|
};
|
|
293
188
|
return response;
|
|
294
189
|
};
|
|
295
|
-
const de_ChangeMessageVisibilityBatchCommandError = async (output, context) => {
|
|
296
|
-
const parsedOutput = {
|
|
297
|
-
...output,
|
|
298
|
-
body: await parseErrorBody(output.body, context),
|
|
299
|
-
};
|
|
300
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
302
|
-
switch (errorCode) {
|
|
303
|
-
case "BatchEntryIdsNotDistinct":
|
|
304
|
-
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
305
|
-
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
306
|
-
case "EmptyBatchRequest":
|
|
307
|
-
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
308
|
-
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
309
|
-
case "InvalidAddress":
|
|
310
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
311
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
312
|
-
case "InvalidBatchEntryId":
|
|
313
|
-
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
314
|
-
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
315
|
-
case "InvalidSecurity":
|
|
316
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
317
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
318
|
-
case "QueueDoesNotExist":
|
|
319
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
320
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
321
|
-
case "RequestThrottled":
|
|
322
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
323
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
324
|
-
case "TooManyEntriesInBatchRequest":
|
|
325
|
-
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
326
|
-
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
327
|
-
case "UnsupportedOperation":
|
|
328
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
329
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
330
|
-
default:
|
|
331
|
-
const parsedBody = parsedOutput.body;
|
|
332
|
-
return throwDefaultError({
|
|
333
|
-
output,
|
|
334
|
-
parsedBody,
|
|
335
|
-
errorCode,
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
190
|
export const de_CreateQueueCommand = async (output, context) => {
|
|
340
191
|
if (output.statusCode >= 300) {
|
|
341
|
-
return
|
|
192
|
+
return de_CommandError(output, context);
|
|
342
193
|
}
|
|
343
194
|
const data = await parseBody(output.body, context);
|
|
344
195
|
let contents = {};
|
|
@@ -349,50 +200,9 @@ export const de_CreateQueueCommand = async (output, context) => {
|
|
|
349
200
|
};
|
|
350
201
|
return response;
|
|
351
202
|
};
|
|
352
|
-
const de_CreateQueueCommandError = async (output, context) => {
|
|
353
|
-
const parsedOutput = {
|
|
354
|
-
...output,
|
|
355
|
-
body: await parseErrorBody(output.body, context),
|
|
356
|
-
};
|
|
357
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
|
-
switch (errorCode) {
|
|
360
|
-
case "InvalidAddress":
|
|
361
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
362
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
363
|
-
case "InvalidAttributeName":
|
|
364
|
-
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
365
|
-
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
366
|
-
case "InvalidAttributeValue":
|
|
367
|
-
case "com.amazonaws.sqs#InvalidAttributeValue":
|
|
368
|
-
throw await de_InvalidAttributeValueRes(parsedOutput, context);
|
|
369
|
-
case "InvalidSecurity":
|
|
370
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
371
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
372
|
-
case "QueueDeletedRecently":
|
|
373
|
-
case "com.amazonaws.sqs#QueueDeletedRecently":
|
|
374
|
-
throw await de_QueueDeletedRecentlyRes(parsedOutput, context);
|
|
375
|
-
case "QueueNameExists":
|
|
376
|
-
case "com.amazonaws.sqs#QueueNameExists":
|
|
377
|
-
throw await de_QueueNameExistsRes(parsedOutput, context);
|
|
378
|
-
case "RequestThrottled":
|
|
379
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
380
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
381
|
-
case "UnsupportedOperation":
|
|
382
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
383
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
384
|
-
default:
|
|
385
|
-
const parsedBody = parsedOutput.body;
|
|
386
|
-
return throwDefaultError({
|
|
387
|
-
output,
|
|
388
|
-
parsedBody,
|
|
389
|
-
errorCode,
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
203
|
export const de_DeleteMessageCommand = async (output, context) => {
|
|
394
204
|
if (output.statusCode >= 300) {
|
|
395
|
-
return
|
|
205
|
+
return de_CommandError(output, context);
|
|
396
206
|
}
|
|
397
207
|
await collectBody(output.body, context);
|
|
398
208
|
const response = {
|
|
@@ -400,47 +210,32 @@ export const de_DeleteMessageCommand = async (output, context) => {
|
|
|
400
210
|
};
|
|
401
211
|
return response;
|
|
402
212
|
};
|
|
403
|
-
const
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
213
|
+
export const de_DeleteMessageBatchCommand = async (output, context) => {
|
|
214
|
+
if (output.statusCode >= 300) {
|
|
215
|
+
return de_CommandError(output, context);
|
|
216
|
+
}
|
|
217
|
+
const data = await parseBody(output.body, context);
|
|
218
|
+
let contents = {};
|
|
219
|
+
contents = _json(data);
|
|
220
|
+
const response = {
|
|
221
|
+
$metadata: deserializeMetadata(output),
|
|
222
|
+
...contents,
|
|
407
223
|
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
414
|
-
case "InvalidIdFormat":
|
|
415
|
-
case "com.amazonaws.sqs#InvalidIdFormat":
|
|
416
|
-
throw await de_InvalidIdFormatRes(parsedOutput, context);
|
|
417
|
-
case "InvalidSecurity":
|
|
418
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
419
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
420
|
-
case "QueueDoesNotExist":
|
|
421
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
422
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
423
|
-
case "ReceiptHandleIsInvalid":
|
|
424
|
-
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
425
|
-
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
426
|
-
case "RequestThrottled":
|
|
427
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
428
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
429
|
-
case "UnsupportedOperation":
|
|
430
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
431
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
432
|
-
default:
|
|
433
|
-
const parsedBody = parsedOutput.body;
|
|
434
|
-
return throwDefaultError({
|
|
435
|
-
output,
|
|
436
|
-
parsedBody,
|
|
437
|
-
errorCode,
|
|
438
|
-
});
|
|
224
|
+
return response;
|
|
225
|
+
};
|
|
226
|
+
export const de_DeleteQueueCommand = async (output, context) => {
|
|
227
|
+
if (output.statusCode >= 300) {
|
|
228
|
+
return de_CommandError(output, context);
|
|
439
229
|
}
|
|
230
|
+
await collectBody(output.body, context);
|
|
231
|
+
const response = {
|
|
232
|
+
$metadata: deserializeMetadata(output),
|
|
233
|
+
};
|
|
234
|
+
return response;
|
|
440
235
|
};
|
|
441
|
-
export const
|
|
236
|
+
export const de_GetQueueAttributesCommand = async (output, context) => {
|
|
442
237
|
if (output.statusCode >= 300) {
|
|
443
|
-
return
|
|
238
|
+
return de_CommandError(output, context);
|
|
444
239
|
}
|
|
445
240
|
const data = await parseBody(output.body, context);
|
|
446
241
|
let contents = {};
|
|
@@ -451,188 +246,22 @@ export const de_DeleteMessageBatchCommand = async (output, context) => {
|
|
|
451
246
|
};
|
|
452
247
|
return response;
|
|
453
248
|
};
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
465
|
-
case "EmptyBatchRequest":
|
|
466
|
-
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
467
|
-
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
468
|
-
case "InvalidAddress":
|
|
469
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
470
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
471
|
-
case "InvalidBatchEntryId":
|
|
472
|
-
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
473
|
-
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
474
|
-
case "InvalidSecurity":
|
|
475
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
476
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
477
|
-
case "QueueDoesNotExist":
|
|
478
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
479
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
480
|
-
case "RequestThrottled":
|
|
481
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
482
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
483
|
-
case "TooManyEntriesInBatchRequest":
|
|
484
|
-
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
485
|
-
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
486
|
-
case "UnsupportedOperation":
|
|
487
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
488
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
489
|
-
default:
|
|
490
|
-
const parsedBody = parsedOutput.body;
|
|
491
|
-
return throwDefaultError({
|
|
492
|
-
output,
|
|
493
|
-
parsedBody,
|
|
494
|
-
errorCode,
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
export const de_DeleteQueueCommand = async (output, context) => {
|
|
499
|
-
if (output.statusCode >= 300) {
|
|
500
|
-
return de_DeleteQueueCommandError(output, context);
|
|
501
|
-
}
|
|
502
|
-
await collectBody(output.body, context);
|
|
503
|
-
const response = {
|
|
504
|
-
$metadata: deserializeMetadata(output),
|
|
505
|
-
};
|
|
506
|
-
return response;
|
|
507
|
-
};
|
|
508
|
-
const de_DeleteQueueCommandError = async (output, context) => {
|
|
509
|
-
const parsedOutput = {
|
|
510
|
-
...output,
|
|
511
|
-
body: await parseErrorBody(output.body, context),
|
|
512
|
-
};
|
|
513
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
515
|
-
switch (errorCode) {
|
|
516
|
-
case "InvalidAddress":
|
|
517
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
518
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
519
|
-
case "InvalidSecurity":
|
|
520
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
521
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
522
|
-
case "QueueDoesNotExist":
|
|
523
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
524
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
525
|
-
case "RequestThrottled":
|
|
526
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
527
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
528
|
-
case "UnsupportedOperation":
|
|
529
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
530
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
export const de_GetQueueAttributesCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode >= 300) {
|
|
542
|
-
return de_GetQueueAttributesCommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const data = await parseBody(output.body, context);
|
|
545
|
-
let contents = {};
|
|
546
|
-
contents = _json(data);
|
|
547
|
-
const response = {
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
...contents,
|
|
249
|
+
export const de_GetQueueUrlCommand = async (output, context) => {
|
|
250
|
+
if (output.statusCode >= 300) {
|
|
251
|
+
return de_CommandError(output, context);
|
|
252
|
+
}
|
|
253
|
+
const data = await parseBody(output.body, context);
|
|
254
|
+
let contents = {};
|
|
255
|
+
contents = _json(data);
|
|
256
|
+
const response = {
|
|
257
|
+
$metadata: deserializeMetadata(output),
|
|
258
|
+
...contents,
|
|
550
259
|
};
|
|
551
260
|
return response;
|
|
552
261
|
};
|
|
553
|
-
const de_GetQueueAttributesCommandError = async (output, context) => {
|
|
554
|
-
const parsedOutput = {
|
|
555
|
-
...output,
|
|
556
|
-
body: await parseErrorBody(output.body, context),
|
|
557
|
-
};
|
|
558
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
|
-
switch (errorCode) {
|
|
561
|
-
case "InvalidAddress":
|
|
562
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
563
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
564
|
-
case "InvalidAttributeName":
|
|
565
|
-
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
566
|
-
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
567
|
-
case "InvalidSecurity":
|
|
568
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
569
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
570
|
-
case "QueueDoesNotExist":
|
|
571
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
572
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
573
|
-
case "RequestThrottled":
|
|
574
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
575
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
576
|
-
case "UnsupportedOperation":
|
|
577
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
578
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
579
|
-
default:
|
|
580
|
-
const parsedBody = parsedOutput.body;
|
|
581
|
-
return throwDefaultError({
|
|
582
|
-
output,
|
|
583
|
-
parsedBody,
|
|
584
|
-
errorCode,
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
export const de_GetQueueUrlCommand = async (output, context) => {
|
|
589
|
-
if (output.statusCode >= 300) {
|
|
590
|
-
return de_GetQueueUrlCommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const data = await parseBody(output.body, context);
|
|
593
|
-
let contents = {};
|
|
594
|
-
contents = _json(data);
|
|
595
|
-
const response = {
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
...contents,
|
|
598
|
-
};
|
|
599
|
-
return response;
|
|
600
|
-
};
|
|
601
|
-
const de_GetQueueUrlCommandError = async (output, context) => {
|
|
602
|
-
const parsedOutput = {
|
|
603
|
-
...output,
|
|
604
|
-
body: await parseErrorBody(output.body, context),
|
|
605
|
-
};
|
|
606
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "InvalidAddress":
|
|
610
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
611
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
612
|
-
case "InvalidSecurity":
|
|
613
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
614
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
615
|
-
case "QueueDoesNotExist":
|
|
616
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
617
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
618
|
-
case "RequestThrottled":
|
|
619
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
620
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
621
|
-
case "UnsupportedOperation":
|
|
622
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
623
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
624
|
-
default:
|
|
625
|
-
const parsedBody = parsedOutput.body;
|
|
626
|
-
return throwDefaultError({
|
|
627
|
-
output,
|
|
628
|
-
parsedBody,
|
|
629
|
-
errorCode,
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
262
|
export const de_ListDeadLetterSourceQueuesCommand = async (output, context) => {
|
|
634
263
|
if (output.statusCode >= 300) {
|
|
635
|
-
return
|
|
264
|
+
return de_CommandError(output, context);
|
|
636
265
|
}
|
|
637
266
|
const data = await parseBody(output.body, context);
|
|
638
267
|
let contents = {};
|
|
@@ -643,41 +272,9 @@ export const de_ListDeadLetterSourceQueuesCommand = async (output, context) => {
|
|
|
643
272
|
};
|
|
644
273
|
return response;
|
|
645
274
|
};
|
|
646
|
-
const de_ListDeadLetterSourceQueuesCommandError = async (output, context) => {
|
|
647
|
-
const parsedOutput = {
|
|
648
|
-
...output,
|
|
649
|
-
body: await parseErrorBody(output.body, context),
|
|
650
|
-
};
|
|
651
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "InvalidAddress":
|
|
655
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
656
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
657
|
-
case "InvalidSecurity":
|
|
658
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
659
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
660
|
-
case "QueueDoesNotExist":
|
|
661
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
662
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
663
|
-
case "RequestThrottled":
|
|
664
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
665
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
666
|
-
case "UnsupportedOperation":
|
|
667
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
668
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
669
|
-
default:
|
|
670
|
-
const parsedBody = parsedOutput.body;
|
|
671
|
-
return throwDefaultError({
|
|
672
|
-
output,
|
|
673
|
-
parsedBody,
|
|
674
|
-
errorCode,
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
275
|
export const de_ListMessageMoveTasksCommand = async (output, context) => {
|
|
679
276
|
if (output.statusCode >= 300) {
|
|
680
|
-
return
|
|
277
|
+
return de_CommandError(output, context);
|
|
681
278
|
}
|
|
682
279
|
const data = await parseBody(output.body, context);
|
|
683
280
|
let contents = {};
|
|
@@ -688,41 +285,9 @@ export const de_ListMessageMoveTasksCommand = async (output, context) => {
|
|
|
688
285
|
};
|
|
689
286
|
return response;
|
|
690
287
|
};
|
|
691
|
-
const de_ListMessageMoveTasksCommandError = async (output, context) => {
|
|
692
|
-
const parsedOutput = {
|
|
693
|
-
...output,
|
|
694
|
-
body: await parseErrorBody(output.body, context),
|
|
695
|
-
};
|
|
696
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
|
-
switch (errorCode) {
|
|
699
|
-
case "InvalidAddress":
|
|
700
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
701
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
702
|
-
case "InvalidSecurity":
|
|
703
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
704
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
705
|
-
case "RequestThrottled":
|
|
706
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
707
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
708
|
-
case "ResourceNotFoundException":
|
|
709
|
-
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
710
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
711
|
-
case "UnsupportedOperation":
|
|
712
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
713
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
714
|
-
default:
|
|
715
|
-
const parsedBody = parsedOutput.body;
|
|
716
|
-
return throwDefaultError({
|
|
717
|
-
output,
|
|
718
|
-
parsedBody,
|
|
719
|
-
errorCode,
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
288
|
export const de_ListQueuesCommand = async (output, context) => {
|
|
724
289
|
if (output.statusCode >= 300) {
|
|
725
|
-
return
|
|
290
|
+
return de_CommandError(output, context);
|
|
726
291
|
}
|
|
727
292
|
const data = await parseBody(output.body, context);
|
|
728
293
|
let contents = {};
|
|
@@ -733,38 +298,9 @@ export const de_ListQueuesCommand = async (output, context) => {
|
|
|
733
298
|
};
|
|
734
299
|
return response;
|
|
735
300
|
};
|
|
736
|
-
const de_ListQueuesCommandError = async (output, context) => {
|
|
737
|
-
const parsedOutput = {
|
|
738
|
-
...output,
|
|
739
|
-
body: await parseErrorBody(output.body, context),
|
|
740
|
-
};
|
|
741
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
-
switch (errorCode) {
|
|
744
|
-
case "InvalidAddress":
|
|
745
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
746
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
747
|
-
case "InvalidSecurity":
|
|
748
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
749
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
750
|
-
case "RequestThrottled":
|
|
751
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
752
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
753
|
-
case "UnsupportedOperation":
|
|
754
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
755
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
756
|
-
default:
|
|
757
|
-
const parsedBody = parsedOutput.body;
|
|
758
|
-
return throwDefaultError({
|
|
759
|
-
output,
|
|
760
|
-
parsedBody,
|
|
761
|
-
errorCode,
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
301
|
export const de_ListQueueTagsCommand = async (output, context) => {
|
|
766
302
|
if (output.statusCode >= 300) {
|
|
767
|
-
return
|
|
303
|
+
return de_CommandError(output, context);
|
|
768
304
|
}
|
|
769
305
|
const data = await parseBody(output.body, context);
|
|
770
306
|
let contents = {};
|
|
@@ -775,41 +311,9 @@ export const de_ListQueueTagsCommand = async (output, context) => {
|
|
|
775
311
|
};
|
|
776
312
|
return response;
|
|
777
313
|
};
|
|
778
|
-
const de_ListQueueTagsCommandError = async (output, context) => {
|
|
779
|
-
const parsedOutput = {
|
|
780
|
-
...output,
|
|
781
|
-
body: await parseErrorBody(output.body, context),
|
|
782
|
-
};
|
|
783
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
-
switch (errorCode) {
|
|
786
|
-
case "InvalidAddress":
|
|
787
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
788
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
789
|
-
case "InvalidSecurity":
|
|
790
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
791
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
792
|
-
case "QueueDoesNotExist":
|
|
793
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
794
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
795
|
-
case "RequestThrottled":
|
|
796
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
797
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
798
|
-
case "UnsupportedOperation":
|
|
799
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
800
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
801
|
-
default:
|
|
802
|
-
const parsedBody = parsedOutput.body;
|
|
803
|
-
return throwDefaultError({
|
|
804
|
-
output,
|
|
805
|
-
parsedBody,
|
|
806
|
-
errorCode,
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
314
|
export const de_PurgeQueueCommand = async (output, context) => {
|
|
811
315
|
if (output.statusCode >= 300) {
|
|
812
|
-
return
|
|
316
|
+
return de_CommandError(output, context);
|
|
813
317
|
}
|
|
814
318
|
await collectBody(output.body, context);
|
|
815
319
|
const response = {
|
|
@@ -817,44 +321,9 @@ export const de_PurgeQueueCommand = async (output, context) => {
|
|
|
817
321
|
};
|
|
818
322
|
return response;
|
|
819
323
|
};
|
|
820
|
-
const de_PurgeQueueCommandError = async (output, context) => {
|
|
821
|
-
const parsedOutput = {
|
|
822
|
-
...output,
|
|
823
|
-
body: await parseErrorBody(output.body, context),
|
|
824
|
-
};
|
|
825
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
-
switch (errorCode) {
|
|
828
|
-
case "InvalidAddress":
|
|
829
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
830
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
831
|
-
case "InvalidSecurity":
|
|
832
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
833
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
834
|
-
case "PurgeQueueInProgress":
|
|
835
|
-
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
836
|
-
throw await de_PurgeQueueInProgressRes(parsedOutput, context);
|
|
837
|
-
case "QueueDoesNotExist":
|
|
838
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
839
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
840
|
-
case "RequestThrottled":
|
|
841
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
842
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
843
|
-
case "UnsupportedOperation":
|
|
844
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
845
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
846
|
-
default:
|
|
847
|
-
const parsedBody = parsedOutput.body;
|
|
848
|
-
return throwDefaultError({
|
|
849
|
-
output,
|
|
850
|
-
parsedBody,
|
|
851
|
-
errorCode,
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
};
|
|
855
324
|
export const de_ReceiveMessageCommand = async (output, context) => {
|
|
856
325
|
if (output.statusCode >= 300) {
|
|
857
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
858
327
|
}
|
|
859
328
|
const data = await parseBody(output.body, context);
|
|
860
329
|
let contents = {};
|
|
@@ -864,177 +333,20 @@ export const de_ReceiveMessageCommand = async (output, context) => {
|
|
|
864
333
|
...contents,
|
|
865
334
|
};
|
|
866
335
|
return response;
|
|
867
|
-
};
|
|
868
|
-
const
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
body: await parseErrorBody(output.body, context),
|
|
872
|
-
};
|
|
873
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
-
switch (errorCode) {
|
|
876
|
-
case "InvalidAddress":
|
|
877
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
878
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
879
|
-
case "InvalidSecurity":
|
|
880
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
881
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
882
|
-
case "KmsAccessDenied":
|
|
883
|
-
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
884
|
-
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
885
|
-
case "KmsDisabled":
|
|
886
|
-
case "com.amazonaws.sqs#KmsDisabled":
|
|
887
|
-
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
888
|
-
case "KmsInvalidKeyUsage":
|
|
889
|
-
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
890
|
-
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
891
|
-
case "KmsInvalidState":
|
|
892
|
-
case "com.amazonaws.sqs#KmsInvalidState":
|
|
893
|
-
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
894
|
-
case "KmsNotFound":
|
|
895
|
-
case "com.amazonaws.sqs#KmsNotFound":
|
|
896
|
-
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
897
|
-
case "KmsOptInRequired":
|
|
898
|
-
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
899
|
-
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
900
|
-
case "KmsThrottled":
|
|
901
|
-
case "com.amazonaws.sqs#KmsThrottled":
|
|
902
|
-
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
903
|
-
case "OverLimit":
|
|
904
|
-
case "com.amazonaws.sqs#OverLimit":
|
|
905
|
-
throw await de_OverLimitRes(parsedOutput, context);
|
|
906
|
-
case "QueueDoesNotExist":
|
|
907
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
908
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
909
|
-
case "RequestThrottled":
|
|
910
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
911
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
912
|
-
case "UnsupportedOperation":
|
|
913
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
914
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
915
|
-
default:
|
|
916
|
-
const parsedBody = parsedOutput.body;
|
|
917
|
-
return throwDefaultError({
|
|
918
|
-
output,
|
|
919
|
-
parsedBody,
|
|
920
|
-
errorCode,
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
export const de_RemovePermissionCommand = async (output, context) => {
|
|
925
|
-
if (output.statusCode >= 300) {
|
|
926
|
-
return de_RemovePermissionCommandError(output, context);
|
|
927
|
-
}
|
|
928
|
-
await collectBody(output.body, context);
|
|
929
|
-
const response = {
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
};
|
|
932
|
-
return response;
|
|
933
|
-
};
|
|
934
|
-
const de_RemovePermissionCommandError = async (output, context) => {
|
|
935
|
-
const parsedOutput = {
|
|
936
|
-
...output,
|
|
937
|
-
body: await parseErrorBody(output.body, context),
|
|
938
|
-
};
|
|
939
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
|
-
switch (errorCode) {
|
|
942
|
-
case "InvalidAddress":
|
|
943
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
944
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
945
|
-
case "InvalidSecurity":
|
|
946
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
947
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
948
|
-
case "QueueDoesNotExist":
|
|
949
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
950
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
951
|
-
case "RequestThrottled":
|
|
952
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
953
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
954
|
-
case "UnsupportedOperation":
|
|
955
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
956
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
return throwDefaultError({
|
|
960
|
-
output,
|
|
961
|
-
parsedBody,
|
|
962
|
-
errorCode,
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
};
|
|
966
|
-
export const de_SendMessageCommand = async (output, context) => {
|
|
967
|
-
if (output.statusCode >= 300) {
|
|
968
|
-
return de_SendMessageCommandError(output, context);
|
|
969
|
-
}
|
|
970
|
-
const data = await parseBody(output.body, context);
|
|
971
|
-
let contents = {};
|
|
972
|
-
contents = _json(data);
|
|
973
|
-
const response = {
|
|
974
|
-
$metadata: deserializeMetadata(output),
|
|
975
|
-
...contents,
|
|
976
|
-
};
|
|
977
|
-
return response;
|
|
978
|
-
};
|
|
979
|
-
const de_SendMessageCommandError = async (output, context) => {
|
|
980
|
-
const parsedOutput = {
|
|
981
|
-
...output,
|
|
982
|
-
body: await parseErrorBody(output.body, context),
|
|
983
|
-
};
|
|
984
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
985
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
-
switch (errorCode) {
|
|
987
|
-
case "InvalidAddress":
|
|
988
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
989
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
990
|
-
case "InvalidMessageContents":
|
|
991
|
-
case "com.amazonaws.sqs#InvalidMessageContents":
|
|
992
|
-
throw await de_InvalidMessageContentsRes(parsedOutput, context);
|
|
993
|
-
case "InvalidSecurity":
|
|
994
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
995
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
996
|
-
case "KmsAccessDenied":
|
|
997
|
-
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
998
|
-
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
999
|
-
case "KmsDisabled":
|
|
1000
|
-
case "com.amazonaws.sqs#KmsDisabled":
|
|
1001
|
-
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
1002
|
-
case "KmsInvalidKeyUsage":
|
|
1003
|
-
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
1004
|
-
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
1005
|
-
case "KmsInvalidState":
|
|
1006
|
-
case "com.amazonaws.sqs#KmsInvalidState":
|
|
1007
|
-
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
1008
|
-
case "KmsNotFound":
|
|
1009
|
-
case "com.amazonaws.sqs#KmsNotFound":
|
|
1010
|
-
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
1011
|
-
case "KmsOptInRequired":
|
|
1012
|
-
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
1013
|
-
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
1014
|
-
case "KmsThrottled":
|
|
1015
|
-
case "com.amazonaws.sqs#KmsThrottled":
|
|
1016
|
-
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
1017
|
-
case "QueueDoesNotExist":
|
|
1018
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1019
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1020
|
-
case "RequestThrottled":
|
|
1021
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1022
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1023
|
-
case "UnsupportedOperation":
|
|
1024
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1025
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode,
|
|
1032
|
-
});
|
|
336
|
+
};
|
|
337
|
+
export const de_RemovePermissionCommand = async (output, context) => {
|
|
338
|
+
if (output.statusCode >= 300) {
|
|
339
|
+
return de_CommandError(output, context);
|
|
1033
340
|
}
|
|
341
|
+
await collectBody(output.body, context);
|
|
342
|
+
const response = {
|
|
343
|
+
$metadata: deserializeMetadata(output),
|
|
344
|
+
};
|
|
345
|
+
return response;
|
|
1034
346
|
};
|
|
1035
|
-
export const
|
|
347
|
+
export const de_SendMessageCommand = async (output, context) => {
|
|
1036
348
|
if (output.statusCode >= 300) {
|
|
1037
|
-
return
|
|
349
|
+
return de_CommandError(output, context);
|
|
1038
350
|
}
|
|
1039
351
|
const data = await parseBody(output.body, context);
|
|
1040
352
|
let contents = {};
|
|
@@ -1045,77 +357,22 @@ export const de_SendMessageBatchCommand = async (output, context) => {
|
|
|
1045
357
|
};
|
|
1046
358
|
return response;
|
|
1047
359
|
};
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
body: await parseErrorBody(output.body, context),
|
|
1052
|
-
};
|
|
1053
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
|
-
switch (errorCode) {
|
|
1056
|
-
case "BatchEntryIdsNotDistinct":
|
|
1057
|
-
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
1058
|
-
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
1059
|
-
case "BatchRequestTooLong":
|
|
1060
|
-
case "com.amazonaws.sqs#BatchRequestTooLong":
|
|
1061
|
-
throw await de_BatchRequestTooLongRes(parsedOutput, context);
|
|
1062
|
-
case "EmptyBatchRequest":
|
|
1063
|
-
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
1064
|
-
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
1065
|
-
case "InvalidAddress":
|
|
1066
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1067
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1068
|
-
case "InvalidBatchEntryId":
|
|
1069
|
-
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
1070
|
-
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
1071
|
-
case "InvalidSecurity":
|
|
1072
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1073
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1074
|
-
case "KmsAccessDenied":
|
|
1075
|
-
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
1076
|
-
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
1077
|
-
case "KmsDisabled":
|
|
1078
|
-
case "com.amazonaws.sqs#KmsDisabled":
|
|
1079
|
-
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
1080
|
-
case "KmsInvalidKeyUsage":
|
|
1081
|
-
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
1082
|
-
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
1083
|
-
case "KmsInvalidState":
|
|
1084
|
-
case "com.amazonaws.sqs#KmsInvalidState":
|
|
1085
|
-
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
1086
|
-
case "KmsNotFound":
|
|
1087
|
-
case "com.amazonaws.sqs#KmsNotFound":
|
|
1088
|
-
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
1089
|
-
case "KmsOptInRequired":
|
|
1090
|
-
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
1091
|
-
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
1092
|
-
case "KmsThrottled":
|
|
1093
|
-
case "com.amazonaws.sqs#KmsThrottled":
|
|
1094
|
-
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
1095
|
-
case "QueueDoesNotExist":
|
|
1096
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1097
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1098
|
-
case "RequestThrottled":
|
|
1099
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1100
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1101
|
-
case "TooManyEntriesInBatchRequest":
|
|
1102
|
-
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
1103
|
-
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
1104
|
-
case "UnsupportedOperation":
|
|
1105
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1106
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
360
|
+
export const de_SendMessageBatchCommand = async (output, context) => {
|
|
361
|
+
if (output.statusCode >= 300) {
|
|
362
|
+
return de_CommandError(output, context);
|
|
1114
363
|
}
|
|
364
|
+
const data = await parseBody(output.body, context);
|
|
365
|
+
let contents = {};
|
|
366
|
+
contents = _json(data);
|
|
367
|
+
const response = {
|
|
368
|
+
$metadata: deserializeMetadata(output),
|
|
369
|
+
...contents,
|
|
370
|
+
};
|
|
371
|
+
return response;
|
|
1115
372
|
};
|
|
1116
373
|
export const de_SetQueueAttributesCommand = async (output, context) => {
|
|
1117
374
|
if (output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
375
|
+
return de_CommandError(output, context);
|
|
1119
376
|
}
|
|
1120
377
|
await collectBody(output.body, context);
|
|
1121
378
|
const response = {
|
|
@@ -1123,50 +380,9 @@ export const de_SetQueueAttributesCommand = async (output, context) => {
|
|
|
1123
380
|
};
|
|
1124
381
|
return response;
|
|
1125
382
|
};
|
|
1126
|
-
const de_SetQueueAttributesCommandError = async (output, context) => {
|
|
1127
|
-
const parsedOutput = {
|
|
1128
|
-
...output,
|
|
1129
|
-
body: await parseErrorBody(output.body, context),
|
|
1130
|
-
};
|
|
1131
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
-
switch (errorCode) {
|
|
1134
|
-
case "InvalidAddress":
|
|
1135
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1136
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1137
|
-
case "InvalidAttributeName":
|
|
1138
|
-
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
1139
|
-
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
1140
|
-
case "InvalidAttributeValue":
|
|
1141
|
-
case "com.amazonaws.sqs#InvalidAttributeValue":
|
|
1142
|
-
throw await de_InvalidAttributeValueRes(parsedOutput, context);
|
|
1143
|
-
case "InvalidSecurity":
|
|
1144
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1145
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1146
|
-
case "OverLimit":
|
|
1147
|
-
case "com.amazonaws.sqs#OverLimit":
|
|
1148
|
-
throw await de_OverLimitRes(parsedOutput, context);
|
|
1149
|
-
case "QueueDoesNotExist":
|
|
1150
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1151
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1152
|
-
case "RequestThrottled":
|
|
1153
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1154
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1155
|
-
case "UnsupportedOperation":
|
|
1156
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1157
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1158
|
-
default:
|
|
1159
|
-
const parsedBody = parsedOutput.body;
|
|
1160
|
-
return throwDefaultError({
|
|
1161
|
-
output,
|
|
1162
|
-
parsedBody,
|
|
1163
|
-
errorCode,
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
};
|
|
1167
383
|
export const de_StartMessageMoveTaskCommand = async (output, context) => {
|
|
1168
384
|
if (output.statusCode >= 300) {
|
|
1169
|
-
return
|
|
385
|
+
return de_CommandError(output, context);
|
|
1170
386
|
}
|
|
1171
387
|
const data = await parseBody(output.body, context);
|
|
1172
388
|
let contents = {};
|
|
@@ -1177,41 +393,9 @@ export const de_StartMessageMoveTaskCommand = async (output, context) => {
|
|
|
1177
393
|
};
|
|
1178
394
|
return response;
|
|
1179
395
|
};
|
|
1180
|
-
const de_StartMessageMoveTaskCommandError = async (output, context) => {
|
|
1181
|
-
const parsedOutput = {
|
|
1182
|
-
...output,
|
|
1183
|
-
body: await parseErrorBody(output.body, context),
|
|
1184
|
-
};
|
|
1185
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1187
|
-
switch (errorCode) {
|
|
1188
|
-
case "InvalidAddress":
|
|
1189
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1190
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1191
|
-
case "InvalidSecurity":
|
|
1192
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1193
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1194
|
-
case "RequestThrottled":
|
|
1195
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1196
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1197
|
-
case "ResourceNotFoundException":
|
|
1198
|
-
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
1199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "UnsupportedOperation":
|
|
1201
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1202
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
return throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
errorCode,
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
};
|
|
1212
396
|
export const de_TagQueueCommand = async (output, context) => {
|
|
1213
397
|
if (output.statusCode >= 300) {
|
|
1214
|
-
return
|
|
398
|
+
return de_CommandError(output, context);
|
|
1215
399
|
}
|
|
1216
400
|
await collectBody(output.body, context);
|
|
1217
401
|
const response = {
|
|
@@ -1219,41 +403,9 @@ export const de_TagQueueCommand = async (output, context) => {
|
|
|
1219
403
|
};
|
|
1220
404
|
return response;
|
|
1221
405
|
};
|
|
1222
|
-
const de_TagQueueCommandError = async (output, context) => {
|
|
1223
|
-
const parsedOutput = {
|
|
1224
|
-
...output,
|
|
1225
|
-
body: await parseErrorBody(output.body, context),
|
|
1226
|
-
};
|
|
1227
|
-
populateBodyWithQueryCompatibility(parsedOutput, output.headers);
|
|
1228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
|
-
switch (errorCode) {
|
|
1230
|
-
case "InvalidAddress":
|
|
1231
|
-
case "com.amazonaws.sqs#InvalidAddress":
|
|
1232
|
-
throw await de_InvalidAddressRes(parsedOutput, context);
|
|
1233
|
-
case "InvalidSecurity":
|
|
1234
|
-
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1235
|
-
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
1236
|
-
case "QueueDoesNotExist":
|
|
1237
|
-
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1238
|
-
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
1239
|
-
case "RequestThrottled":
|
|
1240
|
-
case "com.amazonaws.sqs#RequestThrottled":
|
|
1241
|
-
throw await de_RequestThrottledRes(parsedOutput, context);
|
|
1242
|
-
case "UnsupportedOperation":
|
|
1243
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1244
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1245
|
-
default:
|
|
1246
|
-
const parsedBody = parsedOutput.body;
|
|
1247
|
-
return throwDefaultError({
|
|
1248
|
-
output,
|
|
1249
|
-
parsedBody,
|
|
1250
|
-
errorCode,
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
};
|
|
1254
406
|
export const de_UntagQueueCommand = async (output, context) => {
|
|
1255
407
|
if (output.statusCode >= 300) {
|
|
1256
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
1257
409
|
}
|
|
1258
410
|
await collectBody(output.body, context);
|
|
1259
411
|
const response = {
|
|
@@ -1261,7 +413,7 @@ export const de_UntagQueueCommand = async (output, context) => {
|
|
|
1261
413
|
};
|
|
1262
414
|
return response;
|
|
1263
415
|
};
|
|
1264
|
-
const
|
|
416
|
+
const de_CommandError = async (output, context) => {
|
|
1265
417
|
const parsedOutput = {
|
|
1266
418
|
...output,
|
|
1267
419
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1275,6 +427,9 @@ const de_UntagQueueCommandError = async (output, context) => {
|
|
|
1275
427
|
case "InvalidSecurity":
|
|
1276
428
|
case "com.amazonaws.sqs#InvalidSecurity":
|
|
1277
429
|
throw await de_InvalidSecurityRes(parsedOutput, context);
|
|
430
|
+
case "OverLimit":
|
|
431
|
+
case "com.amazonaws.sqs#OverLimit":
|
|
432
|
+
throw await de_OverLimitRes(parsedOutput, context);
|
|
1278
433
|
case "QueueDoesNotExist":
|
|
1279
434
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
1280
435
|
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
@@ -1284,6 +439,72 @@ const de_UntagQueueCommandError = async (output, context) => {
|
|
|
1284
439
|
case "UnsupportedOperation":
|
|
1285
440
|
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
1286
441
|
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
442
|
+
case "ResourceNotFoundException":
|
|
443
|
+
case "com.amazonaws.sqs#ResourceNotFoundException":
|
|
444
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
445
|
+
case "MessageNotInflight":
|
|
446
|
+
case "com.amazonaws.sqs#MessageNotInflight":
|
|
447
|
+
throw await de_MessageNotInflightRes(parsedOutput, context);
|
|
448
|
+
case "ReceiptHandleIsInvalid":
|
|
449
|
+
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
450
|
+
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
451
|
+
case "BatchEntryIdsNotDistinct":
|
|
452
|
+
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
453
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
454
|
+
case "EmptyBatchRequest":
|
|
455
|
+
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
456
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
457
|
+
case "InvalidBatchEntryId":
|
|
458
|
+
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
459
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
460
|
+
case "TooManyEntriesInBatchRequest":
|
|
461
|
+
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
462
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
463
|
+
case "InvalidAttributeName":
|
|
464
|
+
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
465
|
+
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
466
|
+
case "InvalidAttributeValue":
|
|
467
|
+
case "com.amazonaws.sqs#InvalidAttributeValue":
|
|
468
|
+
throw await de_InvalidAttributeValueRes(parsedOutput, context);
|
|
469
|
+
case "QueueDeletedRecently":
|
|
470
|
+
case "com.amazonaws.sqs#QueueDeletedRecently":
|
|
471
|
+
throw await de_QueueDeletedRecentlyRes(parsedOutput, context);
|
|
472
|
+
case "QueueNameExists":
|
|
473
|
+
case "com.amazonaws.sqs#QueueNameExists":
|
|
474
|
+
throw await de_QueueNameExistsRes(parsedOutput, context);
|
|
475
|
+
case "InvalidIdFormat":
|
|
476
|
+
case "com.amazonaws.sqs#InvalidIdFormat":
|
|
477
|
+
throw await de_InvalidIdFormatRes(parsedOutput, context);
|
|
478
|
+
case "PurgeQueueInProgress":
|
|
479
|
+
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
480
|
+
throw await de_PurgeQueueInProgressRes(parsedOutput, context);
|
|
481
|
+
case "KmsAccessDenied":
|
|
482
|
+
case "com.amazonaws.sqs#KmsAccessDenied":
|
|
483
|
+
throw await de_KmsAccessDeniedRes(parsedOutput, context);
|
|
484
|
+
case "KmsDisabled":
|
|
485
|
+
case "com.amazonaws.sqs#KmsDisabled":
|
|
486
|
+
throw await de_KmsDisabledRes(parsedOutput, context);
|
|
487
|
+
case "KmsInvalidKeyUsage":
|
|
488
|
+
case "com.amazonaws.sqs#KmsInvalidKeyUsage":
|
|
489
|
+
throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
|
|
490
|
+
case "KmsInvalidState":
|
|
491
|
+
case "com.amazonaws.sqs#KmsInvalidState":
|
|
492
|
+
throw await de_KmsInvalidStateRes(parsedOutput, context);
|
|
493
|
+
case "KmsNotFound":
|
|
494
|
+
case "com.amazonaws.sqs#KmsNotFound":
|
|
495
|
+
throw await de_KmsNotFoundRes(parsedOutput, context);
|
|
496
|
+
case "KmsOptInRequired":
|
|
497
|
+
case "com.amazonaws.sqs#KmsOptInRequired":
|
|
498
|
+
throw await de_KmsOptInRequiredRes(parsedOutput, context);
|
|
499
|
+
case "KmsThrottled":
|
|
500
|
+
case "com.amazonaws.sqs#KmsThrottled":
|
|
501
|
+
throw await de_KmsThrottledRes(parsedOutput, context);
|
|
502
|
+
case "InvalidMessageContents":
|
|
503
|
+
case "com.amazonaws.sqs#InvalidMessageContents":
|
|
504
|
+
throw await de_InvalidMessageContentsRes(parsedOutput, context);
|
|
505
|
+
case "BatchRequestTooLong":
|
|
506
|
+
case "com.amazonaws.sqs#BatchRequestTooLong":
|
|
507
|
+
throw await de_BatchRequestTooLongRes(parsedOutput, context);
|
|
1287
508
|
default:
|
|
1288
509
|
const parsedBody = parsedOutput.body;
|
|
1289
510
|
return throwDefaultError({
|