@aws-sdk/client-sqs 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_query.js +187 -289
- package/dist-es/protocols/Aws_query.js +236 -290
- package/package.json +11 -6
|
@@ -283,7 +283,6 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
283
283
|
...output,
|
|
284
284
|
body: await parseBody(output.body, context),
|
|
285
285
|
};
|
|
286
|
-
let response;
|
|
287
286
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
288
287
|
switch (errorCode) {
|
|
289
288
|
case "OverLimit":
|
|
@@ -291,14 +290,12 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
291
290
|
throw await deserializeAws_queryOverLimitResponse(parsedOutput, context);
|
|
292
291
|
default:
|
|
293
292
|
const parsedBody = parsedOutput.body;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
$metadata,
|
|
293
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
294
|
+
output,
|
|
295
|
+
parsedBody: parsedBody.Error,
|
|
296
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
297
|
+
errorCode,
|
|
300
298
|
});
|
|
301
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
302
299
|
}
|
|
303
300
|
};
|
|
304
301
|
const deserializeAws_queryChangeMessageVisibilityCommand = async (output, context) => {
|
|
@@ -317,7 +314,6 @@ const deserializeAws_queryChangeMessageVisibilityCommandError = async (output, c
|
|
|
317
314
|
...output,
|
|
318
315
|
body: await parseBody(output.body, context),
|
|
319
316
|
};
|
|
320
|
-
let response;
|
|
321
317
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
322
318
|
switch (errorCode) {
|
|
323
319
|
case "MessageNotInflight":
|
|
@@ -328,14 +324,12 @@ const deserializeAws_queryChangeMessageVisibilityCommandError = async (output, c
|
|
|
328
324
|
throw await deserializeAws_queryReceiptHandleIsInvalidResponse(parsedOutput, context);
|
|
329
325
|
default:
|
|
330
326
|
const parsedBody = parsedOutput.body;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
$metadata,
|
|
327
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
328
|
+
output,
|
|
329
|
+
parsedBody: parsedBody.Error,
|
|
330
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
331
|
+
errorCode,
|
|
337
332
|
});
|
|
338
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
339
333
|
}
|
|
340
334
|
};
|
|
341
335
|
const deserializeAws_queryChangeMessageVisibilityBatchCommand = async (output, context) => {
|
|
@@ -357,7 +351,6 @@ const deserializeAws_queryChangeMessageVisibilityBatchCommandError = async (outp
|
|
|
357
351
|
...output,
|
|
358
352
|
body: await parseBody(output.body, context),
|
|
359
353
|
};
|
|
360
|
-
let response;
|
|
361
354
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
362
355
|
switch (errorCode) {
|
|
363
356
|
case "BatchEntryIdsNotDistinct":
|
|
@@ -374,14 +367,12 @@ const deserializeAws_queryChangeMessageVisibilityBatchCommandError = async (outp
|
|
|
374
367
|
throw await deserializeAws_queryTooManyEntriesInBatchRequestResponse(parsedOutput, context);
|
|
375
368
|
default:
|
|
376
369
|
const parsedBody = parsedOutput.body;
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
$metadata,
|
|
370
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
371
|
+
output,
|
|
372
|
+
parsedBody: parsedBody.Error,
|
|
373
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
374
|
+
errorCode,
|
|
383
375
|
});
|
|
384
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
385
376
|
}
|
|
386
377
|
};
|
|
387
378
|
const deserializeAws_queryCreateQueueCommand = async (output, context) => {
|
|
@@ -403,7 +394,6 @@ const deserializeAws_queryCreateQueueCommandError = async (output, context) => {
|
|
|
403
394
|
...output,
|
|
404
395
|
body: await parseBody(output.body, context),
|
|
405
396
|
};
|
|
406
|
-
let response;
|
|
407
397
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
408
398
|
switch (errorCode) {
|
|
409
399
|
case "QueueDeletedRecently":
|
|
@@ -414,14 +404,12 @@ const deserializeAws_queryCreateQueueCommandError = async (output, context) => {
|
|
|
414
404
|
throw await deserializeAws_queryQueueNameExistsResponse(parsedOutput, context);
|
|
415
405
|
default:
|
|
416
406
|
const parsedBody = parsedOutput.body;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
$metadata,
|
|
407
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
408
|
+
output,
|
|
409
|
+
parsedBody: parsedBody.Error,
|
|
410
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
411
|
+
errorCode,
|
|
423
412
|
});
|
|
424
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
425
413
|
}
|
|
426
414
|
};
|
|
427
415
|
const deserializeAws_queryDeleteMessageCommand = async (output, context) => {
|
|
@@ -440,7 +428,6 @@ const deserializeAws_queryDeleteMessageCommandError = async (output, context) =>
|
|
|
440
428
|
...output,
|
|
441
429
|
body: await parseBody(output.body, context),
|
|
442
430
|
};
|
|
443
|
-
let response;
|
|
444
431
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
445
432
|
switch (errorCode) {
|
|
446
433
|
case "InvalidIdFormat":
|
|
@@ -451,14 +438,12 @@ const deserializeAws_queryDeleteMessageCommandError = async (output, context) =>
|
|
|
451
438
|
throw await deserializeAws_queryReceiptHandleIsInvalidResponse(parsedOutput, context);
|
|
452
439
|
default:
|
|
453
440
|
const parsedBody = parsedOutput.body;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
$metadata,
|
|
441
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
442
|
+
output,
|
|
443
|
+
parsedBody: parsedBody.Error,
|
|
444
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
445
|
+
errorCode,
|
|
460
446
|
});
|
|
461
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
462
447
|
}
|
|
463
448
|
};
|
|
464
449
|
const deserializeAws_queryDeleteMessageBatchCommand = async (output, context) => {
|
|
@@ -480,7 +465,6 @@ const deserializeAws_queryDeleteMessageBatchCommandError = async (output, contex
|
|
|
480
465
|
...output,
|
|
481
466
|
body: await parseBody(output.body, context),
|
|
482
467
|
};
|
|
483
|
-
let response;
|
|
484
468
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
485
469
|
switch (errorCode) {
|
|
486
470
|
case "BatchEntryIdsNotDistinct":
|
|
@@ -497,14 +481,12 @@ const deserializeAws_queryDeleteMessageBatchCommandError = async (output, contex
|
|
|
497
481
|
throw await deserializeAws_queryTooManyEntriesInBatchRequestResponse(parsedOutput, context);
|
|
498
482
|
default:
|
|
499
483
|
const parsedBody = parsedOutput.body;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
$metadata,
|
|
484
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
485
|
+
output,
|
|
486
|
+
parsedBody: parsedBody.Error,
|
|
487
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
488
|
+
errorCode,
|
|
506
489
|
});
|
|
507
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
508
490
|
}
|
|
509
491
|
};
|
|
510
492
|
const deserializeAws_queryDeleteQueueCommand = async (output, context) => {
|
|
@@ -523,20 +505,14 @@ const deserializeAws_queryDeleteQueueCommandError = async (output, context) => {
|
|
|
523
505
|
...output,
|
|
524
506
|
body: await parseBody(output.body, context),
|
|
525
507
|
};
|
|
526
|
-
let response;
|
|
527
508
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
$fault: "client",
|
|
536
|
-
$metadata,
|
|
537
|
-
});
|
|
538
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
539
|
-
}
|
|
509
|
+
const parsedBody = parsedOutput.body;
|
|
510
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
511
|
+
output,
|
|
512
|
+
parsedBody: parsedBody.Error,
|
|
513
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
514
|
+
errorCode,
|
|
515
|
+
});
|
|
540
516
|
};
|
|
541
517
|
const deserializeAws_queryGetQueueAttributesCommand = async (output, context) => {
|
|
542
518
|
if (output.statusCode >= 300) {
|
|
@@ -557,7 +533,6 @@ const deserializeAws_queryGetQueueAttributesCommandError = async (output, contex
|
|
|
557
533
|
...output,
|
|
558
534
|
body: await parseBody(output.body, context),
|
|
559
535
|
};
|
|
560
|
-
let response;
|
|
561
536
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
562
537
|
switch (errorCode) {
|
|
563
538
|
case "InvalidAttributeName":
|
|
@@ -565,14 +540,12 @@ const deserializeAws_queryGetQueueAttributesCommandError = async (output, contex
|
|
|
565
540
|
throw await deserializeAws_queryInvalidAttributeNameResponse(parsedOutput, context);
|
|
566
541
|
default:
|
|
567
542
|
const parsedBody = parsedOutput.body;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
$metadata,
|
|
543
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
544
|
+
output,
|
|
545
|
+
parsedBody: parsedBody.Error,
|
|
546
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
547
|
+
errorCode,
|
|
574
548
|
});
|
|
575
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
576
549
|
}
|
|
577
550
|
};
|
|
578
551
|
const deserializeAws_queryGetQueueUrlCommand = async (output, context) => {
|
|
@@ -594,7 +567,6 @@ const deserializeAws_queryGetQueueUrlCommandError = async (output, context) => {
|
|
|
594
567
|
...output,
|
|
595
568
|
body: await parseBody(output.body, context),
|
|
596
569
|
};
|
|
597
|
-
let response;
|
|
598
570
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
599
571
|
switch (errorCode) {
|
|
600
572
|
case "QueueDoesNotExist":
|
|
@@ -602,14 +574,12 @@ const deserializeAws_queryGetQueueUrlCommandError = async (output, context) => {
|
|
|
602
574
|
throw await deserializeAws_queryQueueDoesNotExistResponse(parsedOutput, context);
|
|
603
575
|
default:
|
|
604
576
|
const parsedBody = parsedOutput.body;
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
$metadata,
|
|
577
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
578
|
+
output,
|
|
579
|
+
parsedBody: parsedBody.Error,
|
|
580
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
581
|
+
errorCode,
|
|
611
582
|
});
|
|
612
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
613
583
|
}
|
|
614
584
|
};
|
|
615
585
|
const deserializeAws_queryListDeadLetterSourceQueuesCommand = async (output, context) => {
|
|
@@ -631,7 +601,6 @@ const deserializeAws_queryListDeadLetterSourceQueuesCommandError = async (output
|
|
|
631
601
|
...output,
|
|
632
602
|
body: await parseBody(output.body, context),
|
|
633
603
|
};
|
|
634
|
-
let response;
|
|
635
604
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
636
605
|
switch (errorCode) {
|
|
637
606
|
case "QueueDoesNotExist":
|
|
@@ -639,14 +608,12 @@ const deserializeAws_queryListDeadLetterSourceQueuesCommandError = async (output
|
|
|
639
608
|
throw await deserializeAws_queryQueueDoesNotExistResponse(parsedOutput, context);
|
|
640
609
|
default:
|
|
641
610
|
const parsedBody = parsedOutput.body;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
$metadata,
|
|
611
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
612
|
+
output,
|
|
613
|
+
parsedBody: parsedBody.Error,
|
|
614
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
615
|
+
errorCode,
|
|
648
616
|
});
|
|
649
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
650
617
|
}
|
|
651
618
|
};
|
|
652
619
|
const deserializeAws_queryListQueuesCommand = async (output, context) => {
|
|
@@ -668,20 +635,14 @@ const deserializeAws_queryListQueuesCommandError = async (output, context) => {
|
|
|
668
635
|
...output,
|
|
669
636
|
body: await parseBody(output.body, context),
|
|
670
637
|
};
|
|
671
|
-
let response;
|
|
672
638
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
$fault: "client",
|
|
681
|
-
$metadata,
|
|
682
|
-
});
|
|
683
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
684
|
-
}
|
|
639
|
+
const parsedBody = parsedOutput.body;
|
|
640
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
641
|
+
output,
|
|
642
|
+
parsedBody: parsedBody.Error,
|
|
643
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
644
|
+
errorCode,
|
|
645
|
+
});
|
|
685
646
|
};
|
|
686
647
|
const deserializeAws_queryListQueueTagsCommand = async (output, context) => {
|
|
687
648
|
if (output.statusCode >= 300) {
|
|
@@ -702,20 +663,14 @@ const deserializeAws_queryListQueueTagsCommandError = async (output, context) =>
|
|
|
702
663
|
...output,
|
|
703
664
|
body: await parseBody(output.body, context),
|
|
704
665
|
};
|
|
705
|
-
let response;
|
|
706
666
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
$fault: "client",
|
|
715
|
-
$metadata,
|
|
716
|
-
});
|
|
717
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
718
|
-
}
|
|
667
|
+
const parsedBody = parsedOutput.body;
|
|
668
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
669
|
+
output,
|
|
670
|
+
parsedBody: parsedBody.Error,
|
|
671
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
672
|
+
errorCode,
|
|
673
|
+
});
|
|
719
674
|
};
|
|
720
675
|
const deserializeAws_queryPurgeQueueCommand = async (output, context) => {
|
|
721
676
|
if (output.statusCode >= 300) {
|
|
@@ -733,7 +688,6 @@ const deserializeAws_queryPurgeQueueCommandError = async (output, context) => {
|
|
|
733
688
|
...output,
|
|
734
689
|
body: await parseBody(output.body, context),
|
|
735
690
|
};
|
|
736
|
-
let response;
|
|
737
691
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
738
692
|
switch (errorCode) {
|
|
739
693
|
case "PurgeQueueInProgress":
|
|
@@ -744,14 +698,12 @@ const deserializeAws_queryPurgeQueueCommandError = async (output, context) => {
|
|
|
744
698
|
throw await deserializeAws_queryQueueDoesNotExistResponse(parsedOutput, context);
|
|
745
699
|
default:
|
|
746
700
|
const parsedBody = parsedOutput.body;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
$metadata,
|
|
701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
702
|
+
output,
|
|
703
|
+
parsedBody: parsedBody.Error,
|
|
704
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
705
|
+
errorCode,
|
|
753
706
|
});
|
|
754
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
755
707
|
}
|
|
756
708
|
};
|
|
757
709
|
const deserializeAws_queryReceiveMessageCommand = async (output, context) => {
|
|
@@ -773,7 +725,6 @@ const deserializeAws_queryReceiveMessageCommandError = async (output, context) =
|
|
|
773
725
|
...output,
|
|
774
726
|
body: await parseBody(output.body, context),
|
|
775
727
|
};
|
|
776
|
-
let response;
|
|
777
728
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
778
729
|
switch (errorCode) {
|
|
779
730
|
case "OverLimit":
|
|
@@ -781,14 +732,12 @@ const deserializeAws_queryReceiveMessageCommandError = async (output, context) =
|
|
|
781
732
|
throw await deserializeAws_queryOverLimitResponse(parsedOutput, context);
|
|
782
733
|
default:
|
|
783
734
|
const parsedBody = parsedOutput.body;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
$metadata,
|
|
735
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
736
|
+
output,
|
|
737
|
+
parsedBody: parsedBody.Error,
|
|
738
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
739
|
+
errorCode,
|
|
790
740
|
});
|
|
791
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
792
741
|
}
|
|
793
742
|
};
|
|
794
743
|
const deserializeAws_queryRemovePermissionCommand = async (output, context) => {
|
|
@@ -807,20 +756,14 @@ const deserializeAws_queryRemovePermissionCommandError = async (output, context)
|
|
|
807
756
|
...output,
|
|
808
757
|
body: await parseBody(output.body, context),
|
|
809
758
|
};
|
|
810
|
-
let response;
|
|
811
759
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
$fault: "client",
|
|
820
|
-
$metadata,
|
|
821
|
-
});
|
|
822
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
823
|
-
}
|
|
760
|
+
const parsedBody = parsedOutput.body;
|
|
761
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
762
|
+
output,
|
|
763
|
+
parsedBody: parsedBody.Error,
|
|
764
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
765
|
+
errorCode,
|
|
766
|
+
});
|
|
824
767
|
};
|
|
825
768
|
const deserializeAws_querySendMessageCommand = async (output, context) => {
|
|
826
769
|
if (output.statusCode >= 300) {
|
|
@@ -841,7 +784,6 @@ const deserializeAws_querySendMessageCommandError = async (output, context) => {
|
|
|
841
784
|
...output,
|
|
842
785
|
body: await parseBody(output.body, context),
|
|
843
786
|
};
|
|
844
|
-
let response;
|
|
845
787
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
846
788
|
switch (errorCode) {
|
|
847
789
|
case "InvalidMessageContents":
|
|
@@ -852,14 +794,12 @@ const deserializeAws_querySendMessageCommandError = async (output, context) => {
|
|
|
852
794
|
throw await deserializeAws_queryUnsupportedOperationResponse(parsedOutput, context);
|
|
853
795
|
default:
|
|
854
796
|
const parsedBody = parsedOutput.body;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
$metadata,
|
|
797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
798
|
+
output,
|
|
799
|
+
parsedBody: parsedBody.Error,
|
|
800
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
801
|
+
errorCode,
|
|
861
802
|
});
|
|
862
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
863
803
|
}
|
|
864
804
|
};
|
|
865
805
|
const deserializeAws_querySendMessageBatchCommand = async (output, context) => {
|
|
@@ -881,7 +821,6 @@ const deserializeAws_querySendMessageBatchCommandError = async (output, context)
|
|
|
881
821
|
...output,
|
|
882
822
|
body: await parseBody(output.body, context),
|
|
883
823
|
};
|
|
884
|
-
let response;
|
|
885
824
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
886
825
|
switch (errorCode) {
|
|
887
826
|
case "BatchEntryIdsNotDistinct":
|
|
@@ -904,14 +843,12 @@ const deserializeAws_querySendMessageBatchCommandError = async (output, context)
|
|
|
904
843
|
throw await deserializeAws_queryUnsupportedOperationResponse(parsedOutput, context);
|
|
905
844
|
default:
|
|
906
845
|
const parsedBody = parsedOutput.body;
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
$metadata,
|
|
846
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
847
|
+
output,
|
|
848
|
+
parsedBody: parsedBody.Error,
|
|
849
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
850
|
+
errorCode,
|
|
913
851
|
});
|
|
914
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
915
852
|
}
|
|
916
853
|
};
|
|
917
854
|
const deserializeAws_querySetQueueAttributesCommand = async (output, context) => {
|
|
@@ -930,7 +867,6 @@ const deserializeAws_querySetQueueAttributesCommandError = async (output, contex
|
|
|
930
867
|
...output,
|
|
931
868
|
body: await parseBody(output.body, context),
|
|
932
869
|
};
|
|
933
|
-
let response;
|
|
934
870
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
935
871
|
switch (errorCode) {
|
|
936
872
|
case "InvalidAttributeName":
|
|
@@ -938,14 +874,12 @@ const deserializeAws_querySetQueueAttributesCommandError = async (output, contex
|
|
|
938
874
|
throw await deserializeAws_queryInvalidAttributeNameResponse(parsedOutput, context);
|
|
939
875
|
default:
|
|
940
876
|
const parsedBody = parsedOutput.body;
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
$metadata,
|
|
877
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
878
|
+
output,
|
|
879
|
+
parsedBody: parsedBody.Error,
|
|
880
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
881
|
+
errorCode,
|
|
947
882
|
});
|
|
948
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
949
883
|
}
|
|
950
884
|
};
|
|
951
885
|
const deserializeAws_queryTagQueueCommand = async (output, context) => {
|
|
@@ -964,20 +898,14 @@ const deserializeAws_queryTagQueueCommandError = async (output, context) => {
|
|
|
964
898
|
...output,
|
|
965
899
|
body: await parseBody(output.body, context),
|
|
966
900
|
};
|
|
967
|
-
let response;
|
|
968
901
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
$fault: "client",
|
|
977
|
-
$metadata,
|
|
978
|
-
});
|
|
979
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
980
|
-
}
|
|
902
|
+
const parsedBody = parsedOutput.body;
|
|
903
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
904
|
+
output,
|
|
905
|
+
parsedBody: parsedBody.Error,
|
|
906
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
907
|
+
errorCode,
|
|
908
|
+
});
|
|
981
909
|
};
|
|
982
910
|
const deserializeAws_queryUntagQueueCommand = async (output, context) => {
|
|
983
911
|
if (output.statusCode >= 300) {
|
|
@@ -995,20 +923,14 @@ const deserializeAws_queryUntagQueueCommandError = async (output, context) => {
|
|
|
995
923
|
...output,
|
|
996
924
|
body: await parseBody(output.body, context),
|
|
997
925
|
};
|
|
998
|
-
let response;
|
|
999
926
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
$fault: "client",
|
|
1008
|
-
$metadata,
|
|
1009
|
-
});
|
|
1010
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1011
|
-
}
|
|
927
|
+
const parsedBody = parsedOutput.body;
|
|
928
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
929
|
+
output,
|
|
930
|
+
parsedBody: parsedBody.Error,
|
|
931
|
+
exceptionCtor: SQSServiceException_1.SQSServiceException,
|
|
932
|
+
errorCode,
|
|
933
|
+
});
|
|
1012
934
|
};
|
|
1013
935
|
const deserializeAws_queryBatchEntryIdsNotDistinctResponse = async (parsedOutput, context) => {
|
|
1014
936
|
const body = parsedOutput.body;
|
|
@@ -1168,20 +1090,20 @@ const serializeAws_queryActionNameList = (input, context) => {
|
|
|
1168
1090
|
};
|
|
1169
1091
|
const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
1170
1092
|
const entries = {};
|
|
1171
|
-
if (input.QueueUrl
|
|
1093
|
+
if (input.QueueUrl != null) {
|
|
1172
1094
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1173
1095
|
}
|
|
1174
|
-
if (input.Label
|
|
1096
|
+
if (input.Label != null) {
|
|
1175
1097
|
entries["Label"] = input.Label;
|
|
1176
1098
|
}
|
|
1177
|
-
if (input.AWSAccountIds
|
|
1099
|
+
if (input.AWSAccountIds != null) {
|
|
1178
1100
|
const memberEntries = serializeAws_queryAWSAccountIdList(input.AWSAccountIds, context);
|
|
1179
1101
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1180
1102
|
const loc = `AWSAccountId.${key.substring(key.indexOf(".") + 1)}`;
|
|
1181
1103
|
entries[loc] = value;
|
|
1182
1104
|
});
|
|
1183
1105
|
}
|
|
1184
|
-
if (input.Actions
|
|
1106
|
+
if (input.Actions != null) {
|
|
1185
1107
|
const memberEntries = serializeAws_queryActionNameList(input.Actions, context);
|
|
1186
1108
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1187
1109
|
const loc = `ActionName.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1228,10 +1150,10 @@ const serializeAws_queryBinaryList = (input, context) => {
|
|
|
1228
1150
|
};
|
|
1229
1151
|
const serializeAws_queryChangeMessageVisibilityBatchRequest = (input, context) => {
|
|
1230
1152
|
const entries = {};
|
|
1231
|
-
if (input.QueueUrl
|
|
1153
|
+
if (input.QueueUrl != null) {
|
|
1232
1154
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1233
1155
|
}
|
|
1234
|
-
if (input.Entries
|
|
1156
|
+
if (input.Entries != null) {
|
|
1235
1157
|
const memberEntries = serializeAws_queryChangeMessageVisibilityBatchRequestEntryList(input.Entries, context);
|
|
1236
1158
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1237
1159
|
const loc = `ChangeMessageVisibilityBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1242,13 +1164,13 @@ const serializeAws_queryChangeMessageVisibilityBatchRequest = (input, context) =
|
|
|
1242
1164
|
};
|
|
1243
1165
|
const serializeAws_queryChangeMessageVisibilityBatchRequestEntry = (input, context) => {
|
|
1244
1166
|
const entries = {};
|
|
1245
|
-
if (input.Id
|
|
1167
|
+
if (input.Id != null) {
|
|
1246
1168
|
entries["Id"] = input.Id;
|
|
1247
1169
|
}
|
|
1248
|
-
if (input.ReceiptHandle
|
|
1170
|
+
if (input.ReceiptHandle != null) {
|
|
1249
1171
|
entries["ReceiptHandle"] = input.ReceiptHandle;
|
|
1250
1172
|
}
|
|
1251
|
-
if (input.VisibilityTimeout
|
|
1173
|
+
if (input.VisibilityTimeout != null) {
|
|
1252
1174
|
entries["VisibilityTimeout"] = input.VisibilityTimeout;
|
|
1253
1175
|
}
|
|
1254
1176
|
return entries;
|
|
@@ -1270,30 +1192,30 @@ const serializeAws_queryChangeMessageVisibilityBatchRequestEntryList = (input, c
|
|
|
1270
1192
|
};
|
|
1271
1193
|
const serializeAws_queryChangeMessageVisibilityRequest = (input, context) => {
|
|
1272
1194
|
const entries = {};
|
|
1273
|
-
if (input.QueueUrl
|
|
1195
|
+
if (input.QueueUrl != null) {
|
|
1274
1196
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1275
1197
|
}
|
|
1276
|
-
if (input.ReceiptHandle
|
|
1198
|
+
if (input.ReceiptHandle != null) {
|
|
1277
1199
|
entries["ReceiptHandle"] = input.ReceiptHandle;
|
|
1278
1200
|
}
|
|
1279
|
-
if (input.VisibilityTimeout
|
|
1201
|
+
if (input.VisibilityTimeout != null) {
|
|
1280
1202
|
entries["VisibilityTimeout"] = input.VisibilityTimeout;
|
|
1281
1203
|
}
|
|
1282
1204
|
return entries;
|
|
1283
1205
|
};
|
|
1284
1206
|
const serializeAws_queryCreateQueueRequest = (input, context) => {
|
|
1285
1207
|
const entries = {};
|
|
1286
|
-
if (input.QueueName
|
|
1208
|
+
if (input.QueueName != null) {
|
|
1287
1209
|
entries["QueueName"] = input.QueueName;
|
|
1288
1210
|
}
|
|
1289
|
-
if (input.tags
|
|
1211
|
+
if (input.tags != null) {
|
|
1290
1212
|
const memberEntries = serializeAws_queryTagMap(input.tags, context);
|
|
1291
1213
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1292
1214
|
const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
|
|
1293
1215
|
entries[loc] = value;
|
|
1294
1216
|
});
|
|
1295
1217
|
}
|
|
1296
|
-
if (input.Attributes
|
|
1218
|
+
if (input.Attributes != null) {
|
|
1297
1219
|
const memberEntries = serializeAws_queryQueueAttributeMap(input.Attributes, context);
|
|
1298
1220
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1299
1221
|
const loc = `Attribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1304,10 +1226,10 @@ const serializeAws_queryCreateQueueRequest = (input, context) => {
|
|
|
1304
1226
|
};
|
|
1305
1227
|
const serializeAws_queryDeleteMessageBatchRequest = (input, context) => {
|
|
1306
1228
|
const entries = {};
|
|
1307
|
-
if (input.QueueUrl
|
|
1229
|
+
if (input.QueueUrl != null) {
|
|
1308
1230
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1309
1231
|
}
|
|
1310
|
-
if (input.Entries
|
|
1232
|
+
if (input.Entries != null) {
|
|
1311
1233
|
const memberEntries = serializeAws_queryDeleteMessageBatchRequestEntryList(input.Entries, context);
|
|
1312
1234
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1313
1235
|
const loc = `DeleteMessageBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1318,10 +1240,10 @@ const serializeAws_queryDeleteMessageBatchRequest = (input, context) => {
|
|
|
1318
1240
|
};
|
|
1319
1241
|
const serializeAws_queryDeleteMessageBatchRequestEntry = (input, context) => {
|
|
1320
1242
|
const entries = {};
|
|
1321
|
-
if (input.Id
|
|
1243
|
+
if (input.Id != null) {
|
|
1322
1244
|
entries["Id"] = input.Id;
|
|
1323
1245
|
}
|
|
1324
|
-
if (input.ReceiptHandle
|
|
1246
|
+
if (input.ReceiptHandle != null) {
|
|
1325
1247
|
entries["ReceiptHandle"] = input.ReceiptHandle;
|
|
1326
1248
|
}
|
|
1327
1249
|
return entries;
|
|
@@ -1343,27 +1265,27 @@ const serializeAws_queryDeleteMessageBatchRequestEntryList = (input, context) =>
|
|
|
1343
1265
|
};
|
|
1344
1266
|
const serializeAws_queryDeleteMessageRequest = (input, context) => {
|
|
1345
1267
|
const entries = {};
|
|
1346
|
-
if (input.QueueUrl
|
|
1268
|
+
if (input.QueueUrl != null) {
|
|
1347
1269
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1348
1270
|
}
|
|
1349
|
-
if (input.ReceiptHandle
|
|
1271
|
+
if (input.ReceiptHandle != null) {
|
|
1350
1272
|
entries["ReceiptHandle"] = input.ReceiptHandle;
|
|
1351
1273
|
}
|
|
1352
1274
|
return entries;
|
|
1353
1275
|
};
|
|
1354
1276
|
const serializeAws_queryDeleteQueueRequest = (input, context) => {
|
|
1355
1277
|
const entries = {};
|
|
1356
|
-
if (input.QueueUrl
|
|
1278
|
+
if (input.QueueUrl != null) {
|
|
1357
1279
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1358
1280
|
}
|
|
1359
1281
|
return entries;
|
|
1360
1282
|
};
|
|
1361
1283
|
const serializeAws_queryGetQueueAttributesRequest = (input, context) => {
|
|
1362
1284
|
const entries = {};
|
|
1363
|
-
if (input.QueueUrl
|
|
1285
|
+
if (input.QueueUrl != null) {
|
|
1364
1286
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1365
1287
|
}
|
|
1366
|
-
if (input.AttributeNames
|
|
1288
|
+
if (input.AttributeNames != null) {
|
|
1367
1289
|
const memberEntries = serializeAws_queryAttributeNameList(input.AttributeNames, context);
|
|
1368
1290
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1369
1291
|
const loc = `AttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1374,43 +1296,43 @@ const serializeAws_queryGetQueueAttributesRequest = (input, context) => {
|
|
|
1374
1296
|
};
|
|
1375
1297
|
const serializeAws_queryGetQueueUrlRequest = (input, context) => {
|
|
1376
1298
|
const entries = {};
|
|
1377
|
-
if (input.QueueName
|
|
1299
|
+
if (input.QueueName != null) {
|
|
1378
1300
|
entries["QueueName"] = input.QueueName;
|
|
1379
1301
|
}
|
|
1380
|
-
if (input.QueueOwnerAWSAccountId
|
|
1302
|
+
if (input.QueueOwnerAWSAccountId != null) {
|
|
1381
1303
|
entries["QueueOwnerAWSAccountId"] = input.QueueOwnerAWSAccountId;
|
|
1382
1304
|
}
|
|
1383
1305
|
return entries;
|
|
1384
1306
|
};
|
|
1385
1307
|
const serializeAws_queryListDeadLetterSourceQueuesRequest = (input, context) => {
|
|
1386
1308
|
const entries = {};
|
|
1387
|
-
if (input.QueueUrl
|
|
1309
|
+
if (input.QueueUrl != null) {
|
|
1388
1310
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1389
1311
|
}
|
|
1390
|
-
if (input.NextToken
|
|
1312
|
+
if (input.NextToken != null) {
|
|
1391
1313
|
entries["NextToken"] = input.NextToken;
|
|
1392
1314
|
}
|
|
1393
|
-
if (input.MaxResults
|
|
1315
|
+
if (input.MaxResults != null) {
|
|
1394
1316
|
entries["MaxResults"] = input.MaxResults;
|
|
1395
1317
|
}
|
|
1396
1318
|
return entries;
|
|
1397
1319
|
};
|
|
1398
1320
|
const serializeAws_queryListQueuesRequest = (input, context) => {
|
|
1399
1321
|
const entries = {};
|
|
1400
|
-
if (input.QueueNamePrefix
|
|
1322
|
+
if (input.QueueNamePrefix != null) {
|
|
1401
1323
|
entries["QueueNamePrefix"] = input.QueueNamePrefix;
|
|
1402
1324
|
}
|
|
1403
|
-
if (input.NextToken
|
|
1325
|
+
if (input.NextToken != null) {
|
|
1404
1326
|
entries["NextToken"] = input.NextToken;
|
|
1405
1327
|
}
|
|
1406
|
-
if (input.MaxResults
|
|
1328
|
+
if (input.MaxResults != null) {
|
|
1407
1329
|
entries["MaxResults"] = input.MaxResults;
|
|
1408
1330
|
}
|
|
1409
1331
|
return entries;
|
|
1410
1332
|
};
|
|
1411
1333
|
const serializeAws_queryListQueueTagsRequest = (input, context) => {
|
|
1412
1334
|
const entries = {};
|
|
1413
|
-
if (input.QueueUrl
|
|
1335
|
+
if (input.QueueUrl != null) {
|
|
1414
1336
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1415
1337
|
}
|
|
1416
1338
|
return entries;
|
|
@@ -1429,27 +1351,27 @@ const serializeAws_queryMessageAttributeNameList = (input, context) => {
|
|
|
1429
1351
|
};
|
|
1430
1352
|
const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
1431
1353
|
const entries = {};
|
|
1432
|
-
if (input.StringValue
|
|
1354
|
+
if (input.StringValue != null) {
|
|
1433
1355
|
entries["StringValue"] = input.StringValue;
|
|
1434
1356
|
}
|
|
1435
|
-
if (input.BinaryValue
|
|
1357
|
+
if (input.BinaryValue != null) {
|
|
1436
1358
|
entries["BinaryValue"] = context.base64Encoder(input.BinaryValue);
|
|
1437
1359
|
}
|
|
1438
|
-
if (input.StringListValues
|
|
1360
|
+
if (input.StringListValues != null) {
|
|
1439
1361
|
const memberEntries = serializeAws_queryStringList(input.StringListValues, context);
|
|
1440
1362
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1441
1363
|
const loc = `StringListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1442
1364
|
entries[loc] = value;
|
|
1443
1365
|
});
|
|
1444
1366
|
}
|
|
1445
|
-
if (input.BinaryListValues
|
|
1367
|
+
if (input.BinaryListValues != null) {
|
|
1446
1368
|
const memberEntries = serializeAws_queryBinaryList(input.BinaryListValues, context);
|
|
1447
1369
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1448
1370
|
const loc = `BinaryListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1449
1371
|
entries[loc] = value;
|
|
1450
1372
|
});
|
|
1451
1373
|
}
|
|
1452
|
-
if (input.DataType
|
|
1374
|
+
if (input.DataType != null) {
|
|
1453
1375
|
entries["DataType"] = input.DataType;
|
|
1454
1376
|
}
|
|
1455
1377
|
return entries;
|
|
@@ -1486,34 +1408,34 @@ const serializeAws_queryMessageBodySystemAttributeMap = (input, context) => {
|
|
|
1486
1408
|
};
|
|
1487
1409
|
const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
1488
1410
|
const entries = {};
|
|
1489
|
-
if (input.StringValue
|
|
1411
|
+
if (input.StringValue != null) {
|
|
1490
1412
|
entries["StringValue"] = input.StringValue;
|
|
1491
1413
|
}
|
|
1492
|
-
if (input.BinaryValue
|
|
1414
|
+
if (input.BinaryValue != null) {
|
|
1493
1415
|
entries["BinaryValue"] = context.base64Encoder(input.BinaryValue);
|
|
1494
1416
|
}
|
|
1495
|
-
if (input.StringListValues
|
|
1417
|
+
if (input.StringListValues != null) {
|
|
1496
1418
|
const memberEntries = serializeAws_queryStringList(input.StringListValues, context);
|
|
1497
1419
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1498
1420
|
const loc = `StringListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1499
1421
|
entries[loc] = value;
|
|
1500
1422
|
});
|
|
1501
1423
|
}
|
|
1502
|
-
if (input.BinaryListValues
|
|
1424
|
+
if (input.BinaryListValues != null) {
|
|
1503
1425
|
const memberEntries = serializeAws_queryBinaryList(input.BinaryListValues, context);
|
|
1504
1426
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1505
1427
|
const loc = `BinaryListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1506
1428
|
entries[loc] = value;
|
|
1507
1429
|
});
|
|
1508
1430
|
}
|
|
1509
|
-
if (input.DataType
|
|
1431
|
+
if (input.DataType != null) {
|
|
1510
1432
|
entries["DataType"] = input.DataType;
|
|
1511
1433
|
}
|
|
1512
1434
|
return entries;
|
|
1513
1435
|
};
|
|
1514
1436
|
const serializeAws_queryPurgeQueueRequest = (input, context) => {
|
|
1515
1437
|
const entries = {};
|
|
1516
|
-
if (input.QueueUrl
|
|
1438
|
+
if (input.QueueUrl != null) {
|
|
1517
1439
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1518
1440
|
}
|
|
1519
1441
|
return entries;
|
|
@@ -1532,53 +1454,53 @@ const serializeAws_queryQueueAttributeMap = (input, context) => {
|
|
|
1532
1454
|
};
|
|
1533
1455
|
const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
1534
1456
|
const entries = {};
|
|
1535
|
-
if (input.QueueUrl
|
|
1457
|
+
if (input.QueueUrl != null) {
|
|
1536
1458
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1537
1459
|
}
|
|
1538
|
-
if (input.AttributeNames
|
|
1460
|
+
if (input.AttributeNames != null) {
|
|
1539
1461
|
const memberEntries = serializeAws_queryAttributeNameList(input.AttributeNames, context);
|
|
1540
1462
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1541
1463
|
const loc = `AttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1542
1464
|
entries[loc] = value;
|
|
1543
1465
|
});
|
|
1544
1466
|
}
|
|
1545
|
-
if (input.MessageAttributeNames
|
|
1467
|
+
if (input.MessageAttributeNames != null) {
|
|
1546
1468
|
const memberEntries = serializeAws_queryMessageAttributeNameList(input.MessageAttributeNames, context);
|
|
1547
1469
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1548
1470
|
const loc = `MessageAttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1549
1471
|
entries[loc] = value;
|
|
1550
1472
|
});
|
|
1551
1473
|
}
|
|
1552
|
-
if (input.MaxNumberOfMessages
|
|
1474
|
+
if (input.MaxNumberOfMessages != null) {
|
|
1553
1475
|
entries["MaxNumberOfMessages"] = input.MaxNumberOfMessages;
|
|
1554
1476
|
}
|
|
1555
|
-
if (input.VisibilityTimeout
|
|
1477
|
+
if (input.VisibilityTimeout != null) {
|
|
1556
1478
|
entries["VisibilityTimeout"] = input.VisibilityTimeout;
|
|
1557
1479
|
}
|
|
1558
|
-
if (input.WaitTimeSeconds
|
|
1480
|
+
if (input.WaitTimeSeconds != null) {
|
|
1559
1481
|
entries["WaitTimeSeconds"] = input.WaitTimeSeconds;
|
|
1560
1482
|
}
|
|
1561
|
-
if (input.ReceiveRequestAttemptId
|
|
1483
|
+
if (input.ReceiveRequestAttemptId != null) {
|
|
1562
1484
|
entries["ReceiveRequestAttemptId"] = input.ReceiveRequestAttemptId;
|
|
1563
1485
|
}
|
|
1564
1486
|
return entries;
|
|
1565
1487
|
};
|
|
1566
1488
|
const serializeAws_queryRemovePermissionRequest = (input, context) => {
|
|
1567
1489
|
const entries = {};
|
|
1568
|
-
if (input.QueueUrl
|
|
1490
|
+
if (input.QueueUrl != null) {
|
|
1569
1491
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1570
1492
|
}
|
|
1571
|
-
if (input.Label
|
|
1493
|
+
if (input.Label != null) {
|
|
1572
1494
|
entries["Label"] = input.Label;
|
|
1573
1495
|
}
|
|
1574
1496
|
return entries;
|
|
1575
1497
|
};
|
|
1576
1498
|
const serializeAws_querySendMessageBatchRequest = (input, context) => {
|
|
1577
1499
|
const entries = {};
|
|
1578
|
-
if (input.QueueUrl
|
|
1500
|
+
if (input.QueueUrl != null) {
|
|
1579
1501
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1580
1502
|
}
|
|
1581
|
-
if (input.Entries
|
|
1503
|
+
if (input.Entries != null) {
|
|
1582
1504
|
const memberEntries = serializeAws_querySendMessageBatchRequestEntryList(input.Entries, context);
|
|
1583
1505
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1584
1506
|
const loc = `SendMessageBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1589,33 +1511,33 @@ const serializeAws_querySendMessageBatchRequest = (input, context) => {
|
|
|
1589
1511
|
};
|
|
1590
1512
|
const serializeAws_querySendMessageBatchRequestEntry = (input, context) => {
|
|
1591
1513
|
const entries = {};
|
|
1592
|
-
if (input.Id
|
|
1514
|
+
if (input.Id != null) {
|
|
1593
1515
|
entries["Id"] = input.Id;
|
|
1594
1516
|
}
|
|
1595
|
-
if (input.MessageBody
|
|
1517
|
+
if (input.MessageBody != null) {
|
|
1596
1518
|
entries["MessageBody"] = input.MessageBody;
|
|
1597
1519
|
}
|
|
1598
|
-
if (input.DelaySeconds
|
|
1520
|
+
if (input.DelaySeconds != null) {
|
|
1599
1521
|
entries["DelaySeconds"] = input.DelaySeconds;
|
|
1600
1522
|
}
|
|
1601
|
-
if (input.MessageAttributes
|
|
1523
|
+
if (input.MessageAttributes != null) {
|
|
1602
1524
|
const memberEntries = serializeAws_queryMessageBodyAttributeMap(input.MessageAttributes, context);
|
|
1603
1525
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1604
1526
|
const loc = `MessageAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1605
1527
|
entries[loc] = value;
|
|
1606
1528
|
});
|
|
1607
1529
|
}
|
|
1608
|
-
if (input.MessageSystemAttributes
|
|
1530
|
+
if (input.MessageSystemAttributes != null) {
|
|
1609
1531
|
const memberEntries = serializeAws_queryMessageBodySystemAttributeMap(input.MessageSystemAttributes, context);
|
|
1610
1532
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1611
1533
|
const loc = `MessageSystemAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1612
1534
|
entries[loc] = value;
|
|
1613
1535
|
});
|
|
1614
1536
|
}
|
|
1615
|
-
if (input.MessageDeduplicationId
|
|
1537
|
+
if (input.MessageDeduplicationId != null) {
|
|
1616
1538
|
entries["MessageDeduplicationId"] = input.MessageDeduplicationId;
|
|
1617
1539
|
}
|
|
1618
|
-
if (input.MessageGroupId
|
|
1540
|
+
if (input.MessageGroupId != null) {
|
|
1619
1541
|
entries["MessageGroupId"] = input.MessageGroupId;
|
|
1620
1542
|
}
|
|
1621
1543
|
return entries;
|
|
@@ -1637,43 +1559,43 @@ const serializeAws_querySendMessageBatchRequestEntryList = (input, context) => {
|
|
|
1637
1559
|
};
|
|
1638
1560
|
const serializeAws_querySendMessageRequest = (input, context) => {
|
|
1639
1561
|
const entries = {};
|
|
1640
|
-
if (input.QueueUrl
|
|
1562
|
+
if (input.QueueUrl != null) {
|
|
1641
1563
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1642
1564
|
}
|
|
1643
|
-
if (input.MessageBody
|
|
1565
|
+
if (input.MessageBody != null) {
|
|
1644
1566
|
entries["MessageBody"] = input.MessageBody;
|
|
1645
1567
|
}
|
|
1646
|
-
if (input.DelaySeconds
|
|
1568
|
+
if (input.DelaySeconds != null) {
|
|
1647
1569
|
entries["DelaySeconds"] = input.DelaySeconds;
|
|
1648
1570
|
}
|
|
1649
|
-
if (input.MessageAttributes
|
|
1571
|
+
if (input.MessageAttributes != null) {
|
|
1650
1572
|
const memberEntries = serializeAws_queryMessageBodyAttributeMap(input.MessageAttributes, context);
|
|
1651
1573
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1652
1574
|
const loc = `MessageAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1653
1575
|
entries[loc] = value;
|
|
1654
1576
|
});
|
|
1655
1577
|
}
|
|
1656
|
-
if (input.MessageSystemAttributes
|
|
1578
|
+
if (input.MessageSystemAttributes != null) {
|
|
1657
1579
|
const memberEntries = serializeAws_queryMessageBodySystemAttributeMap(input.MessageSystemAttributes, context);
|
|
1658
1580
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1659
1581
|
const loc = `MessageSystemAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1660
1582
|
entries[loc] = value;
|
|
1661
1583
|
});
|
|
1662
1584
|
}
|
|
1663
|
-
if (input.MessageDeduplicationId
|
|
1585
|
+
if (input.MessageDeduplicationId != null) {
|
|
1664
1586
|
entries["MessageDeduplicationId"] = input.MessageDeduplicationId;
|
|
1665
1587
|
}
|
|
1666
|
-
if (input.MessageGroupId
|
|
1588
|
+
if (input.MessageGroupId != null) {
|
|
1667
1589
|
entries["MessageGroupId"] = input.MessageGroupId;
|
|
1668
1590
|
}
|
|
1669
1591
|
return entries;
|
|
1670
1592
|
};
|
|
1671
1593
|
const serializeAws_querySetQueueAttributesRequest = (input, context) => {
|
|
1672
1594
|
const entries = {};
|
|
1673
|
-
if (input.QueueUrl
|
|
1595
|
+
if (input.QueueUrl != null) {
|
|
1674
1596
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1675
1597
|
}
|
|
1676
|
-
if (input.Attributes
|
|
1598
|
+
if (input.Attributes != null) {
|
|
1677
1599
|
const memberEntries = serializeAws_queryQueueAttributeMap(input.Attributes, context);
|
|
1678
1600
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1679
1601
|
const loc = `Attribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1720,10 +1642,10 @@ const serializeAws_queryTagMap = (input, context) => {
|
|
|
1720
1642
|
};
|
|
1721
1643
|
const serializeAws_queryTagQueueRequest = (input, context) => {
|
|
1722
1644
|
const entries = {};
|
|
1723
|
-
if (input.QueueUrl
|
|
1645
|
+
if (input.QueueUrl != null) {
|
|
1724
1646
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1725
1647
|
}
|
|
1726
|
-
if (input.Tags
|
|
1648
|
+
if (input.Tags != null) {
|
|
1727
1649
|
const memberEntries = serializeAws_queryTagMap(input.Tags, context);
|
|
1728
1650
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1729
1651
|
const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1734,10 +1656,10 @@ const serializeAws_queryTagQueueRequest = (input, context) => {
|
|
|
1734
1656
|
};
|
|
1735
1657
|
const serializeAws_queryUntagQueueRequest = (input, context) => {
|
|
1736
1658
|
const entries = {};
|
|
1737
|
-
if (input.QueueUrl
|
|
1659
|
+
if (input.QueueUrl != null) {
|
|
1738
1660
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1739
1661
|
}
|
|
1740
|
-
if (input.TagKeys
|
|
1662
|
+
if (input.TagKeys != null) {
|
|
1741
1663
|
const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
|
|
1742
1664
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1743
1665
|
const loc = `TagKey.${key.substring(key.indexOf(".") + 1)}`;
|
|
@@ -1779,9 +1701,6 @@ const deserializeAws_queryBatchResultErrorEntryList = (output, context) => {
|
|
|
1779
1701
|
return (output || [])
|
|
1780
1702
|
.filter((e) => e != null)
|
|
1781
1703
|
.map((entry) => {
|
|
1782
|
-
if (entry === null) {
|
|
1783
|
-
return null;
|
|
1784
|
-
}
|
|
1785
1704
|
return deserializeAws_queryBatchResultErrorEntry(entry, context);
|
|
1786
1705
|
});
|
|
1787
1706
|
};
|
|
@@ -1789,9 +1708,6 @@ const deserializeAws_queryBinaryList = (output, context) => {
|
|
|
1789
1708
|
return (output || [])
|
|
1790
1709
|
.filter((e) => e != null)
|
|
1791
1710
|
.map((entry) => {
|
|
1792
|
-
if (entry === null) {
|
|
1793
|
-
return null;
|
|
1794
|
-
}
|
|
1795
1711
|
return context.base64Decoder(entry);
|
|
1796
1712
|
});
|
|
1797
1713
|
};
|
|
@@ -1827,9 +1743,6 @@ const deserializeAws_queryChangeMessageVisibilityBatchResultEntryList = (output,
|
|
|
1827
1743
|
return (output || [])
|
|
1828
1744
|
.filter((e) => e != null)
|
|
1829
1745
|
.map((entry) => {
|
|
1830
|
-
if (entry === null) {
|
|
1831
|
-
return null;
|
|
1832
|
-
}
|
|
1833
1746
|
return deserializeAws_queryChangeMessageVisibilityBatchResultEntry(entry, context);
|
|
1834
1747
|
});
|
|
1835
1748
|
};
|
|
@@ -1874,9 +1787,6 @@ const deserializeAws_queryDeleteMessageBatchResultEntryList = (output, context)
|
|
|
1874
1787
|
return (output || [])
|
|
1875
1788
|
.filter((e) => e != null)
|
|
1876
1789
|
.map((entry) => {
|
|
1877
|
-
if (entry === null) {
|
|
1878
|
-
return null;
|
|
1879
|
-
}
|
|
1880
1790
|
return deserializeAws_queryDeleteMessageBatchResultEntry(entry, context);
|
|
1881
1791
|
});
|
|
1882
1792
|
};
|
|
@@ -2050,9 +1960,6 @@ const deserializeAws_queryMessageList = (output, context) => {
|
|
|
2050
1960
|
return (output || [])
|
|
2051
1961
|
.filter((e) => e != null)
|
|
2052
1962
|
.map((entry) => {
|
|
2053
|
-
if (entry === null) {
|
|
2054
|
-
return null;
|
|
2055
|
-
}
|
|
2056
1963
|
return deserializeAws_queryMessage(entry, context);
|
|
2057
1964
|
});
|
|
2058
1965
|
};
|
|
@@ -2106,9 +2013,6 @@ const deserializeAws_queryQueueUrlList = (output, context) => {
|
|
|
2106
2013
|
return (output || [])
|
|
2107
2014
|
.filter((e) => e != null)
|
|
2108
2015
|
.map((entry) => {
|
|
2109
|
-
if (entry === null) {
|
|
2110
|
-
return null;
|
|
2111
|
-
}
|
|
2112
2016
|
return (0, smithy_client_1.expectString)(entry);
|
|
2113
2017
|
});
|
|
2114
2018
|
};
|
|
@@ -2180,9 +2084,6 @@ const deserializeAws_querySendMessageBatchResultEntryList = (output, context) =>
|
|
|
2180
2084
|
return (output || [])
|
|
2181
2085
|
.filter((e) => e != null)
|
|
2182
2086
|
.map((entry) => {
|
|
2183
|
-
if (entry === null) {
|
|
2184
|
-
return null;
|
|
2185
|
-
}
|
|
2186
2087
|
return deserializeAws_querySendMessageBatchResultEntry(entry, context);
|
|
2187
2088
|
});
|
|
2188
2089
|
};
|
|
@@ -2215,9 +2116,6 @@ const deserializeAws_queryStringList = (output, context) => {
|
|
|
2215
2116
|
return (output || [])
|
|
2216
2117
|
.filter((e) => e != null)
|
|
2217
2118
|
.map((entry) => {
|
|
2218
|
-
if (entry === null) {
|
|
2219
|
-
return null;
|
|
2220
|
-
}
|
|
2221
2119
|
return (0, smithy_client_1.expectString)(entry);
|
|
2222
2120
|
});
|
|
2223
2121
|
};
|