@aws-sdk/client-sqs 3.180.0 → 3.183.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/CHANGELOG.md +26 -0
- package/dist-cjs/protocols/Aws_query.js +54 -46
- package/dist-es/SQS.js +82 -89
- package/dist-es/SQSClient.js +22 -28
- package/dist-es/commands/AddPermissionCommand.js +22 -29
- package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +21 -28
- package/dist-es/commands/ChangeMessageVisibilityCommand.js +22 -29
- package/dist-es/commands/CreateQueueCommand.js +21 -28
- package/dist-es/commands/DeleteMessageBatchCommand.js +21 -28
- package/dist-es/commands/DeleteMessageCommand.js +22 -29
- package/dist-es/commands/DeleteQueueCommand.js +22 -29
- package/dist-es/commands/GetQueueAttributesCommand.js +21 -28
- package/dist-es/commands/GetQueueUrlCommand.js +21 -28
- package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +21 -28
- package/dist-es/commands/ListQueueTagsCommand.js +21 -28
- package/dist-es/commands/ListQueuesCommand.js +21 -28
- package/dist-es/commands/PurgeQueueCommand.js +22 -29
- package/dist-es/commands/ReceiveMessageCommand.js +21 -28
- package/dist-es/commands/RemovePermissionCommand.js +22 -29
- package/dist-es/commands/SendMessageBatchCommand.js +21 -28
- package/dist-es/commands/SendMessageCommand.js +21 -28
- package/dist-es/commands/SetQueueAttributesCommand.js +22 -29
- package/dist-es/commands/TagQueueCommand.js +22 -29
- package/dist-es/commands/UntagQueueCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SQSServiceException.js +5 -10
- package/dist-es/models/models_0.js +315 -234
- package/dist-es/pagination/ListDeadLetterSourceQueuesPaginator.js +25 -68
- package/dist-es/pagination/ListQueuesPaginator.js +25 -68
- package/dist-es/protocols/Aws_query.js +1414 -1895
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +31 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sqs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
* **clients:** update message in Error key in case of XML protocol ([#4000](https://github.com/aws/aws-sdk-js-v3/issues/4000)) ([057f686](https://github.com/aws/aws-sdk-js-v3/commit/057f686f217caa4e277bbe6e2905decf97b0fad1))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **clients:** support awsQueryError trait ([#3998](https://github.com/aws/aws-sdk-js-v3/issues/3998)) ([384cbd7](https://github.com/aws/aws-sdk-js-v3/commit/384cbd7cbdbc0635d2dbff53b54d769ca80dabbb))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
6
32
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
33
|
|
|
8
34
|
**Note:** Version bump only for package @aws-sdk/client-sqs
|
|
@@ -281,7 +281,7 @@ exports.deserializeAws_queryAddPermissionCommand = deserializeAws_queryAddPermis
|
|
|
281
281
|
const deserializeAws_queryAddPermissionCommandError = async (output, context) => {
|
|
282
282
|
const parsedOutput = {
|
|
283
283
|
...output,
|
|
284
|
-
body: await
|
|
284
|
+
body: await parseErrorBody(output.body, context),
|
|
285
285
|
};
|
|
286
286
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
287
287
|
switch (errorCode) {
|
|
@@ -312,11 +312,11 @@ exports.deserializeAws_queryChangeMessageVisibilityCommand = deserializeAws_quer
|
|
|
312
312
|
const deserializeAws_queryChangeMessageVisibilityCommandError = async (output, context) => {
|
|
313
313
|
const parsedOutput = {
|
|
314
314
|
...output,
|
|
315
|
-
body: await
|
|
315
|
+
body: await parseErrorBody(output.body, context),
|
|
316
316
|
};
|
|
317
317
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
318
318
|
switch (errorCode) {
|
|
319
|
-
case "MessageNotInflight":
|
|
319
|
+
case "AWS.SimpleQueueService.MessageNotInflight":
|
|
320
320
|
case "com.amazonaws.sqs#MessageNotInflight":
|
|
321
321
|
throw await deserializeAws_queryMessageNotInflightResponse(parsedOutput, context);
|
|
322
322
|
case "ReceiptHandleIsInvalid":
|
|
@@ -349,20 +349,20 @@ exports.deserializeAws_queryChangeMessageVisibilityBatchCommand = deserializeAws
|
|
|
349
349
|
const deserializeAws_queryChangeMessageVisibilityBatchCommandError = async (output, context) => {
|
|
350
350
|
const parsedOutput = {
|
|
351
351
|
...output,
|
|
352
|
-
body: await
|
|
352
|
+
body: await parseErrorBody(output.body, context),
|
|
353
353
|
};
|
|
354
354
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
355
355
|
switch (errorCode) {
|
|
356
|
-
case "BatchEntryIdsNotDistinct":
|
|
356
|
+
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
357
357
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
358
358
|
throw await deserializeAws_queryBatchEntryIdsNotDistinctResponse(parsedOutput, context);
|
|
359
|
-
case "EmptyBatchRequest":
|
|
359
|
+
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
360
360
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
361
361
|
throw await deserializeAws_queryEmptyBatchRequestResponse(parsedOutput, context);
|
|
362
|
-
case "InvalidBatchEntryId":
|
|
362
|
+
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
363
363
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
364
364
|
throw await deserializeAws_queryInvalidBatchEntryIdResponse(parsedOutput, context);
|
|
365
|
-
case "TooManyEntriesInBatchRequest":
|
|
365
|
+
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
366
366
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
367
367
|
throw await deserializeAws_queryTooManyEntriesInBatchRequestResponse(parsedOutput, context);
|
|
368
368
|
default:
|
|
@@ -392,14 +392,14 @@ exports.deserializeAws_queryCreateQueueCommand = deserializeAws_queryCreateQueue
|
|
|
392
392
|
const deserializeAws_queryCreateQueueCommandError = async (output, context) => {
|
|
393
393
|
const parsedOutput = {
|
|
394
394
|
...output,
|
|
395
|
-
body: await
|
|
395
|
+
body: await parseErrorBody(output.body, context),
|
|
396
396
|
};
|
|
397
397
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
398
398
|
switch (errorCode) {
|
|
399
|
-
case "QueueDeletedRecently":
|
|
399
|
+
case "AWS.SimpleQueueService.QueueDeletedRecently":
|
|
400
400
|
case "com.amazonaws.sqs#QueueDeletedRecently":
|
|
401
401
|
throw await deserializeAws_queryQueueDeletedRecentlyResponse(parsedOutput, context);
|
|
402
|
-
case "
|
|
402
|
+
case "QueueAlreadyExists":
|
|
403
403
|
case "com.amazonaws.sqs#QueueNameExists":
|
|
404
404
|
throw await deserializeAws_queryQueueNameExistsResponse(parsedOutput, context);
|
|
405
405
|
default:
|
|
@@ -426,7 +426,7 @@ exports.deserializeAws_queryDeleteMessageCommand = deserializeAws_queryDeleteMes
|
|
|
426
426
|
const deserializeAws_queryDeleteMessageCommandError = async (output, context) => {
|
|
427
427
|
const parsedOutput = {
|
|
428
428
|
...output,
|
|
429
|
-
body: await
|
|
429
|
+
body: await parseErrorBody(output.body, context),
|
|
430
430
|
};
|
|
431
431
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
432
432
|
switch (errorCode) {
|
|
@@ -463,20 +463,20 @@ exports.deserializeAws_queryDeleteMessageBatchCommand = deserializeAws_queryDele
|
|
|
463
463
|
const deserializeAws_queryDeleteMessageBatchCommandError = async (output, context) => {
|
|
464
464
|
const parsedOutput = {
|
|
465
465
|
...output,
|
|
466
|
-
body: await
|
|
466
|
+
body: await parseErrorBody(output.body, context),
|
|
467
467
|
};
|
|
468
468
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
469
469
|
switch (errorCode) {
|
|
470
|
-
case "BatchEntryIdsNotDistinct":
|
|
470
|
+
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
471
471
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
472
472
|
throw await deserializeAws_queryBatchEntryIdsNotDistinctResponse(parsedOutput, context);
|
|
473
|
-
case "EmptyBatchRequest":
|
|
473
|
+
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
474
474
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
475
475
|
throw await deserializeAws_queryEmptyBatchRequestResponse(parsedOutput, context);
|
|
476
|
-
case "InvalidBatchEntryId":
|
|
476
|
+
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
477
477
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
478
478
|
throw await deserializeAws_queryInvalidBatchEntryIdResponse(parsedOutput, context);
|
|
479
|
-
case "TooManyEntriesInBatchRequest":
|
|
479
|
+
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
480
480
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
481
481
|
throw await deserializeAws_queryTooManyEntriesInBatchRequestResponse(parsedOutput, context);
|
|
482
482
|
default:
|
|
@@ -503,7 +503,7 @@ exports.deserializeAws_queryDeleteQueueCommand = deserializeAws_queryDeleteQueue
|
|
|
503
503
|
const deserializeAws_queryDeleteQueueCommandError = async (output, context) => {
|
|
504
504
|
const parsedOutput = {
|
|
505
505
|
...output,
|
|
506
|
-
body: await
|
|
506
|
+
body: await parseErrorBody(output.body, context),
|
|
507
507
|
};
|
|
508
508
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
509
509
|
const parsedBody = parsedOutput.body;
|
|
@@ -531,7 +531,7 @@ exports.deserializeAws_queryGetQueueAttributesCommand = deserializeAws_queryGetQ
|
|
|
531
531
|
const deserializeAws_queryGetQueueAttributesCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
|
-
body: await
|
|
534
|
+
body: await parseErrorBody(output.body, context),
|
|
535
535
|
};
|
|
536
536
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
537
537
|
switch (errorCode) {
|
|
@@ -565,11 +565,11 @@ exports.deserializeAws_queryGetQueueUrlCommand = deserializeAws_queryGetQueueUrl
|
|
|
565
565
|
const deserializeAws_queryGetQueueUrlCommandError = async (output, context) => {
|
|
566
566
|
const parsedOutput = {
|
|
567
567
|
...output,
|
|
568
|
-
body: await
|
|
568
|
+
body: await parseErrorBody(output.body, context),
|
|
569
569
|
};
|
|
570
570
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
571
571
|
switch (errorCode) {
|
|
572
|
-
case "
|
|
572
|
+
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
573
573
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
574
574
|
throw await deserializeAws_queryQueueDoesNotExistResponse(parsedOutput, context);
|
|
575
575
|
default:
|
|
@@ -599,11 +599,11 @@ exports.deserializeAws_queryListDeadLetterSourceQueuesCommand = deserializeAws_q
|
|
|
599
599
|
const deserializeAws_queryListDeadLetterSourceQueuesCommandError = async (output, context) => {
|
|
600
600
|
const parsedOutput = {
|
|
601
601
|
...output,
|
|
602
|
-
body: await
|
|
602
|
+
body: await parseErrorBody(output.body, context),
|
|
603
603
|
};
|
|
604
604
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
605
605
|
switch (errorCode) {
|
|
606
|
-
case "
|
|
606
|
+
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
607
607
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
608
608
|
throw await deserializeAws_queryQueueDoesNotExistResponse(parsedOutput, context);
|
|
609
609
|
default:
|
|
@@ -633,7 +633,7 @@ exports.deserializeAws_queryListQueuesCommand = deserializeAws_queryListQueuesCo
|
|
|
633
633
|
const deserializeAws_queryListQueuesCommandError = async (output, context) => {
|
|
634
634
|
const parsedOutput = {
|
|
635
635
|
...output,
|
|
636
|
-
body: await
|
|
636
|
+
body: await parseErrorBody(output.body, context),
|
|
637
637
|
};
|
|
638
638
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
639
639
|
const parsedBody = parsedOutput.body;
|
|
@@ -661,7 +661,7 @@ exports.deserializeAws_queryListQueueTagsCommand = deserializeAws_queryListQueue
|
|
|
661
661
|
const deserializeAws_queryListQueueTagsCommandError = async (output, context) => {
|
|
662
662
|
const parsedOutput = {
|
|
663
663
|
...output,
|
|
664
|
-
body: await
|
|
664
|
+
body: await parseErrorBody(output.body, context),
|
|
665
665
|
};
|
|
666
666
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
667
667
|
const parsedBody = parsedOutput.body;
|
|
@@ -686,16 +686,16 @@ exports.deserializeAws_queryPurgeQueueCommand = deserializeAws_queryPurgeQueueCo
|
|
|
686
686
|
const deserializeAws_queryPurgeQueueCommandError = async (output, context) => {
|
|
687
687
|
const parsedOutput = {
|
|
688
688
|
...output,
|
|
689
|
-
body: await
|
|
689
|
+
body: await parseErrorBody(output.body, context),
|
|
690
690
|
};
|
|
691
691
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
692
692
|
switch (errorCode) {
|
|
693
|
-
case "
|
|
694
|
-
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
695
|
-
throw await deserializeAws_queryPurgeQueueInProgressResponse(parsedOutput, context);
|
|
696
|
-
case "QueueDoesNotExist":
|
|
693
|
+
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
697
694
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
698
695
|
throw await deserializeAws_queryQueueDoesNotExistResponse(parsedOutput, context);
|
|
696
|
+
case "AWS.SimpleQueueService.PurgeQueueInProgress":
|
|
697
|
+
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
698
|
+
throw await deserializeAws_queryPurgeQueueInProgressResponse(parsedOutput, context);
|
|
699
699
|
default:
|
|
700
700
|
const parsedBody = parsedOutput.body;
|
|
701
701
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -723,7 +723,7 @@ exports.deserializeAws_queryReceiveMessageCommand = deserializeAws_queryReceiveM
|
|
|
723
723
|
const deserializeAws_queryReceiveMessageCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
|
-
body: await
|
|
726
|
+
body: await parseErrorBody(output.body, context),
|
|
727
727
|
};
|
|
728
728
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
729
729
|
switch (errorCode) {
|
|
@@ -754,7 +754,7 @@ exports.deserializeAws_queryRemovePermissionCommand = deserializeAws_queryRemove
|
|
|
754
754
|
const deserializeAws_queryRemovePermissionCommandError = async (output, context) => {
|
|
755
755
|
const parsedOutput = {
|
|
756
756
|
...output,
|
|
757
|
-
body: await
|
|
757
|
+
body: await parseErrorBody(output.body, context),
|
|
758
758
|
};
|
|
759
759
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
760
760
|
const parsedBody = parsedOutput.body;
|
|
@@ -782,16 +782,16 @@ exports.deserializeAws_querySendMessageCommand = deserializeAws_querySendMessage
|
|
|
782
782
|
const deserializeAws_querySendMessageCommandError = async (output, context) => {
|
|
783
783
|
const parsedOutput = {
|
|
784
784
|
...output,
|
|
785
|
-
body: await
|
|
785
|
+
body: await parseErrorBody(output.body, context),
|
|
786
786
|
};
|
|
787
787
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
788
788
|
switch (errorCode) {
|
|
789
|
+
case "AWS.SimpleQueueService.UnsupportedOperation":
|
|
790
|
+
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
791
|
+
throw await deserializeAws_queryUnsupportedOperationResponse(parsedOutput, context);
|
|
789
792
|
case "InvalidMessageContents":
|
|
790
793
|
case "com.amazonaws.sqs#InvalidMessageContents":
|
|
791
794
|
throw await deserializeAws_queryInvalidMessageContentsResponse(parsedOutput, context);
|
|
792
|
-
case "UnsupportedOperation":
|
|
793
|
-
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
794
|
-
throw await deserializeAws_queryUnsupportedOperationResponse(parsedOutput, context);
|
|
795
795
|
default:
|
|
796
796
|
const parsedBody = parsedOutput.body;
|
|
797
797
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -819,26 +819,26 @@ exports.deserializeAws_querySendMessageBatchCommand = deserializeAws_querySendMe
|
|
|
819
819
|
const deserializeAws_querySendMessageBatchCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
|
-
body: await
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
823
|
};
|
|
824
824
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
825
825
|
switch (errorCode) {
|
|
826
|
-
case "BatchEntryIdsNotDistinct":
|
|
826
|
+
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
827
827
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
828
828
|
throw await deserializeAws_queryBatchEntryIdsNotDistinctResponse(parsedOutput, context);
|
|
829
|
-
case "BatchRequestTooLong":
|
|
829
|
+
case "AWS.SimpleQueueService.BatchRequestTooLong":
|
|
830
830
|
case "com.amazonaws.sqs#BatchRequestTooLong":
|
|
831
831
|
throw await deserializeAws_queryBatchRequestTooLongResponse(parsedOutput, context);
|
|
832
|
-
case "EmptyBatchRequest":
|
|
832
|
+
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
833
833
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
834
834
|
throw await deserializeAws_queryEmptyBatchRequestResponse(parsedOutput, context);
|
|
835
|
-
case "InvalidBatchEntryId":
|
|
835
|
+
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
836
836
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
837
837
|
throw await deserializeAws_queryInvalidBatchEntryIdResponse(parsedOutput, context);
|
|
838
|
-
case "TooManyEntriesInBatchRequest":
|
|
838
|
+
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
839
839
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
840
840
|
throw await deserializeAws_queryTooManyEntriesInBatchRequestResponse(parsedOutput, context);
|
|
841
|
-
case "UnsupportedOperation":
|
|
841
|
+
case "AWS.SimpleQueueService.UnsupportedOperation":
|
|
842
842
|
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
843
843
|
throw await deserializeAws_queryUnsupportedOperationResponse(parsedOutput, context);
|
|
844
844
|
default:
|
|
@@ -865,7 +865,7 @@ exports.deserializeAws_querySetQueueAttributesCommand = deserializeAws_querySetQ
|
|
|
865
865
|
const deserializeAws_querySetQueueAttributesCommandError = async (output, context) => {
|
|
866
866
|
const parsedOutput = {
|
|
867
867
|
...output,
|
|
868
|
-
body: await
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
869
|
};
|
|
870
870
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
871
871
|
switch (errorCode) {
|
|
@@ -896,7 +896,7 @@ exports.deserializeAws_queryTagQueueCommand = deserializeAws_queryTagQueueComman
|
|
|
896
896
|
const deserializeAws_queryTagQueueCommandError = async (output, context) => {
|
|
897
897
|
const parsedOutput = {
|
|
898
898
|
...output,
|
|
899
|
-
body: await
|
|
899
|
+
body: await parseErrorBody(output.body, context),
|
|
900
900
|
};
|
|
901
901
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
902
902
|
const parsedBody = parsedOutput.body;
|
|
@@ -921,7 +921,7 @@ exports.deserializeAws_queryUntagQueueCommand = deserializeAws_queryUntagQueueCo
|
|
|
921
921
|
const deserializeAws_queryUntagQueueCommandError = async (output, context) => {
|
|
922
922
|
const parsedOutput = {
|
|
923
923
|
...output,
|
|
924
|
-
body: await
|
|
924
|
+
body: await parseErrorBody(output.body, context),
|
|
925
925
|
};
|
|
926
926
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
927
927
|
const parsedBody = parsedOutput.body;
|
|
@@ -2192,6 +2192,14 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2192
2192
|
}
|
|
2193
2193
|
return {};
|
|
2194
2194
|
});
|
|
2195
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2196
|
+
var _a;
|
|
2197
|
+
const value = await parseBody(errorBody, context);
|
|
2198
|
+
if (value.Error) {
|
|
2199
|
+
value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
|
|
2200
|
+
}
|
|
2201
|
+
return value;
|
|
2202
|
+
};
|
|
2195
2203
|
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
2196
2204
|
.map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
|
|
2197
2205
|
.join("&");
|